Jenkins: Automation Reports with Screenshots of Failed Tests Using TestNG Reporting plugins

Опубликовано: 06 Октябрь 2024
на канале: Bernard Lago
23,264
34

Automation Reports with Screenshots Of Failed Tests for Java

Scenario:
Go to facebook, assert elements, then login.
During assertion, continue the test steps even if a failure is encountered
Capture screenshots of failed assertions by: Extending TestListenerAdapter, Implementing IReporter


Reporting Library/Plugin used:
1. ReportNG (http://reportng.uncommons.org/)
No longer maintained
2. ExtentReports (http://extentreports.relevantcodes.com/)

Publish html reports in Jenkins (v1.640) using
HTML Publisher plugin (https://wiki.jenkins-ci.org/display/J...)