11package UITestFramework .retryLogic ;
22
33
4- import java .io .File ;
5- import java .io .IOException ;
6- import java .text .SimpleDateFormat ;
7- import java .util .Date ;
8- import java .util .Set ;
9-
4+ import UITestFramework .CreateSession ;
5+ import UITestFramework .ExtentReportConfig ;
6+ import com .aventstack .extentreports .ExtentReports ;
7+ import com .aventstack .extentreports .ExtentTest ;
8+ import com .aventstack .extentreports .Status ;
109import org .apache .commons .io .FileUtils ;
1110import org .openqa .selenium .OutputType ;
1211import org .openqa .selenium .TakesScreenshot ;
1514import org .testng .ITestListener ;
1615import org .testng .ITestNGMethod ;
1716import org .testng .ITestResult ;
18- import UITestFramework .CreateSession ;
19- import com .aventstack .extentreports .ExtentReports ;
20- import com .aventstack .extentreports .ExtentTest ;
21- import com .aventstack .extentreports .Status ;
17+
18+ import java .io .File ;
19+ import java .io .IOException ;
20+ import java .text .SimpleDateFormat ;
21+ import java .util .Date ;
22+ import java .util .Set ;
2223
2324public class TestListener extends CreateSession implements ITestListener {
2425
25- ExtentReports extent =ExtentReportSetup .extentReportGenerator ();
26+ ExtentReports extent = ExtentReportConfig .extentReportGenerator ();
2627 ExtentTest test ;
2728
2829 public void onFinish (ITestContext context ) {
@@ -46,7 +47,7 @@ public void onTestStart(ITestResult result) {
4647 }
4748
4849 public void onTestSuccess (ITestResult result ) {
49- test .log (Status .PASS , "Successfull " );
50+ test .log (Status .PASS , "No Issues encountered! " );
5051 }
5152
5253 @ Override
0 commit comments