Friday, May 29, 2020

How to run failed test case only


https://chercher.tech/java/run-failed-testcases-testng-selenium-webdriver

After execution on the "Result of Running Class" you see the details like PASSED and Failed, Skipped, and time taken to execute.

failed%20selenium%20webdriver

2.Refresh the project and open the test-output folder
3. Now open the index, it might look like below with pass and failed details

index%20selenium%20webdriver

4. Now you could see the testng-failed.xml file in the test-output folder


Now go to eclipse and right-click on the testng-failed.xml

right%20failed%20xml%20selenium%20webdriver

6.Select Run As->TestNG Test

failed%20xml%20exe%20selenium%20webdriver

No comments:

Post a Comment