Executing failed testcases using testng-failedxml in jenkis | Selenium Forum
V
viijjii Posted 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

 


A
Ashish Thakur Replied 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.