Tuesday, October 22, 2019

Testng test report

1. Testng execute the class which has @test annotation before the method
2. Testng test results report will be created as soon as you run any class with annotation @test in it
3. Since we have @test annotation, we need not have main method
4. Once java class is written with @test annotation method run it with by right clicking class file -> select run as testng test. It will run the method and test ng report will be generated based on number of @test methods
5. You could run test suites by creating test ng XML file.
6. Test XML file created manually by selecting java project-> create file-> xml-> name.xml.
7. Once name.xml is created 
5.