Problem - I have 6 tests and one dataprovider with 2*2 object array.
I want TestNG to pick first data, use it in First test and then subsequent tests are executed based on the data picked in first test.
In the second iteration testng picks second data and all the subsequent tests should iterate 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.