Using TestNG with ExtentReports Purpose: Demonstrate parallel runs by-method and by-class.
Just import into your IDE as a Gradle project and run with the command: gradle cleanTest test
The build.gradle can be setup to scan for .java files or explicity run a testng.xml file.
NOTE: If you run with Gradle, IntelliJ-IDEA will hide test results from you in the IDE window, and it will not if you run with a TestNG run configuration.
To run this project, add these 3 .jar files to your classpath:
- extentreports-2.41.2.jar
- freemarker-2.3.23.jar
- testng-6.10.jar
In your IDE run configuration, run by pointing to suite file in src/test/resources/testNG.xml
- Import the project as a generic project.
- Create a new Run Configuration for TestNG
- Choose "Run As Suite"
- Execute
- TODO