Problem – I have 6 and one dataprovider with 2*2 object array.

I want to pick first data, use it in First and then tests are executed based on the data picked in first .

In the second testng picks second data and all the subsequent tests should as per priority.

Issue – Right now I tried prioritizing and pointing @dataprovider for each test but first test is executed twice (2 iterations) and then it moves to second test, now second test executes twice and so on.

Please let me know the solution.

Source link


Please enter your comment!
Please enter your name here