1. TestNG installed in Eclispse.
2. You need to download the following jar files for Extent Reports. Once downloaded, you can import the library by right-clicking on the project -> Properties -> Java Build Path -> Libraries -> Add External JARs...
ExtentReports ExtentReports For Selenium Apache FreeMarker RxJava
How to generate Extent Reports in Selenium WebDriver (Example 1)
KW.java
Output
[RemoteTestNG] detected TestNG version 7.4.0
PASSED: VerifyTitle
===============================================
Default test
Tests run: 1, Failures: 0, Skips: 0
===============================================
===============================================
Default suite
Total tests run: 1, Passes: 1, Failures: 0, Skips: 0
===============================================
How to generate Extent Reports in Selenium WebDriver (Example 2)
KW.java
Output
[RemoteTestNG] detected TestNG version 7.4.0
PASSED: VerifyTitle
===============================================
Default test
Tests run: 1, Failures: 0, Skips: 0
===============================================
===============================================
Default suite
Total tests run: 1, Passes: 1, Failures: 0, Skips: 0
===============================================
Advertisement
Thank You
Dear User, Thank you for visitng Kodingwindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.
Dear User, We are grateful for your interest in the Kodingwindow Android app. We intend to soon make it available on the Google Play Store. Currently, Android versions 10 and up require manual apk installations. Would you like to get the app?