While executing 20 testcases using TestNg.xml(CMD)15 testcases have passed and 5 testcases have failed so how can you rerun the testcases which have failed without having to run the entire your testcases again?

java -classpath testng.jar;%CLASSPATH% org.testng.TestNG -d test-outputs test-outputs\testng-failed.xml
java -classpath testng.jar;%CLASSPATH% org.testng.TestNG -d test-outputs test-outputs\testng-Skipped.xml
java -classpath testng.jar;%CLASSPATH% org.testng.TestNG -d test test-outputs\testng-failed.xml
java -classpath testng.jar;%CLASSPATH% org.testng.TestNG -d test-outputs\testng-skipped.xml
Verified Answer
Correct Option - a

To get all Infosys Certified Selenium Advance Automation Tester Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram