-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExtentReport.java
More file actions
35 lines (23 loc) · 828 Bytes
/
ExtentReport.java
File metadata and controls
35 lines (23 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package reports;
import java.io.File;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import com.relevantcodes.extentreports.ExtentReports;
import com.relevantcodes.extentreports.ExtentTest;
public class ExtentReport {
public static ExtentReports extent;
public static ExtentTest test;
@BeforeSuite
public void Report()
{
extent = new ExtentReports("C:\\Users\\Amaresh\\Desktop\\Test_reports\\extentreports.htm",true);
extent.loadConfig(new File("C:\\Users\\Amaresh\\Desktop\\extent-config.xml"));
test=extent.startTest("smoke test");
}
@AfterSuite
public void Report_Close() {
ExtentReport.extent.endTest(ExtentReport.test);
ExtentReport.extent.flush();
ExtentReport.extent.close();
}
}