0

I have dataprovider where it reads excel file , each row as one test case data, when I ran this testng test which uses dataprovider for data.

Is there a way to run only failed tests(in the excel which row data gets failed that rows) alone?

dario
  • 5,149
  • 12
  • 28
  • 32
  • Try to read the values of the column which contains the result and continue only if if is 'Fail'. – Vikas Ojha Jun 08 '15 at 08:19
  • is there a way to create a test case for each row dynamically, so that failed tests in testng report I can rerun. The above solution wont work out for me as I will run my test in different Vms , If i insert the result into dataprovider xml also , there is no gaurantee of picking my test on the same vm – kiran kumar Jun 08 '15 at 08:28

0 Answers0