title: Run entire test class with first row of dataprovider
body: <p>Setup:</p>
  
  <ol>
  <li>I have a test class.</li>
  <li>This test class has several methods with <code>@Test(dataProvider = "getData")</code> annotation.</li>
  <li>There are 7 records (rows) in data.</li>
  <li>All tests are sequential.</li>
  </ol>
  
  <p>Problem:</p>
  
  <p>I need to run all methods (tests) with one row of data, but as of now it keeps on repeating same tests on all rows i.e. if there is 7 rows of data then test 1 will run 7 times and then second test will start and same happen for second test and so on.</p>
  
  <p>I want all tests to run for row 1 and then all tests run again for row2. </p>
  
  <p>I am using Apache poi APIs to read data from ms-excel sheet. Java, testng and Selenium to automate the browser on Windows.</p>
  
  <p>I have visited following link but didn't get the implementation:
  <a href="https://dzone.com/articles/testng-run-tests-sequentially" rel="nofollow noreferrer">https://dzone.com/articles/testng-run-tests-sequentially</a><br></p>