Reports / Executed Results
Test report/results document which contains summary of test activities performed with pass/fail status and the time taken for execution.
After completing the execution, it is very important to communicate the test results and findings to the project manager and with that decisions can be made for the release.
We can also capture and store all the screen shots for failed scenarios and it also store the executed data sheets with Pass/Fail status.
When we use TestNG, by default it generates the reports / execution status in ‘html’ formats.
The below is the sample html format report generated by TestNG.
TestNG Basic Report:
You can click here for article on How to Customize TestNG Report Emailable Report which will help user to quickly understand report.
We can also view the reports in detail by using the options/links that are present in left-hand side.
The above report is in Chronological order, in which we can view all the executed methods and if there are any “Failed” cases, it will indicate with Red Color Cross icon (as shown at Edit_User_With_Valid_Data).
It will also display the time taken to execute test cases in the right side of each test cases.
We can view the detailed report if there are any failed test cases, we can click on link “Show” beside Failed Methods under “Results” Grid.
The below is the example report to see failed test cases report in detail:
User can also see the Pass Methods details as Failed methods.
The below is the example report to see Passed test cases report in detail:
TestNG allows the user to use ReportNG Reports as well.
ReportNG is a simple plug-in for the TestNG unit-testing framework to generate HTML reports as a replacement for the default TestNG HTML reports.
The below is the sample ReportNG basic report:
Click on the hyperlink to view the detailed report. If there are any failed cases it will show the message/error that occurred.
The below is the sample ReportNG detailed report