Tuesday, 28 February 2017

Generate Extent Reports in SignInTest

In the previous post, we got some idea about the extent reports. Here we will implement the extent report in our test cases & will verify the report.
As of now I will introduce the extent report only for SignInTest & in next post onwards I will implement the same for other tests as well.
To generate the report, follow the steps below:
  •  Download the files from here.
  • Extract the .zip file.
  • Copy & replace SignInTest.java file in com.demo.pom.testcases package.
  • Replace the ExtentManager.java & ReportsConfig.xml files.
  •  Right Click on SignInTest.java > Run As > TestNG Suite

·         Once the test case execution completed, refresh the project directory & verify the below results:
1.      It should create a folder inside src & the name should be report.
2.      Inside report folder, there should be .html file.
3.      Open the file in any web browser & verify the logs & reports in below format:
[Figure 1: Project Directory having report folder]
[Figure 2 : Extent Report]
[Figure 3: Extent Report Dash Board]





<<<Prev       Next>>>


No comments:

Post a Comment