Executing failed testcases using testng-failedxml in jenkis | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
10% April Month Discount Avail now

Selenium Training Forum

Executing failed testcases using testng-failedxml in jenkis

V
viijjii Post on 06/02/2019

Hi ,

We are executing group of around 200 testcases on daily basis using jenkins. after every build few of testcases are getting failed. so we want to execute those failed cases after postbuild action using testng-failed.xml . 

The problem which we are facing is testng-failed.xml file is getting deleted when we do maven clean . could you please guide as how we can reexceute those failed testcase

 

D

Instructor

Demo Reply on 11/02/2019

You can build up a logic which uses an external file to set the status of the test case. Which you may use later to know the status of test cases and allow you to re-execute that as well.