Report generation is very important when you are doing the Automation Testing as well as for Manual Testing.
- By looking at the result, you can easily identify how many test cases are passed, failed and skipped.
- By looking at the report, you will come to know what the status of the project is.
Selenium web driver is used for automating the web-application, but it won’t generate any reports.
- The TestNG will generate the default report.
- When you execute testng.xml file, and refresh the project. You will get test-output folder in that folder.
- Right click on the emailable-report.html and select the option. Open with the web browser.
In this chapter we will learn about
Method1:Emailable-report.html
Method2:index.html
Method-1: emailable-report.html
- Click on option “emailable-report.html”
- Click on option web browser
![](http://testology.in/wp-content/uploads/2019/09/report.jpg)
The output report of testng will look like below if all the testcases are passed:
![](http://testology.in/wp-content/uploads/2019/09/reportgeneration-1024x512.jpg)
Method-2 :index.html
- Right click on the index.html from the project directory.
- Select option open with web browser option. It will display the result in the following order.
![](http://testology.in/wp-content/uploads/2019/09/indexreport.jpg)
The result will be as follows:
![](http://testology.in/wp-content/uploads/2019/09/emailablereport-1024x502.jpg)
Leave a Reply