How to identify which row in a dataprovider failed?

583 Views Asked by At

I have a situation where there is a test that gets data from a dataprovider. This dataprovider has a lot of rows (huge dataset). I would like to understand, if there is a way to find out which data the test failed for, when there is a failure. I run my tests through IntelliJ. One option I have in mind is to add an identifier to every row of data, but I would like to understand if there are better solutions.

1

There are 1 best solutions below

2
On

Where are you looking for the results. Testng gives output with the parameters passed to the @test from which you can identify which data set was the test executed for. Look in the testresults folder.