Hi Abhay,
You can use
data-provider-thread-count property. Below is an example,
<suite name="QAF Demo" verbose="0" data-provider-thread-count="2" parallel="methods">
<test name="Sample Test">
<classes>
<class name="com.infostretch.automation.SampleTest"/>
</classes>
</test>
</suite>
And my test class is,
public class SampleTest {
@Test(dataProvider = "SearchProvider")
public void testMethod(String author, String country) {
//your code
}
@DataProvider(name = "SearchProvider")
public Object[][] getDataFromDataprovider() {
return new Object[][]
{
{"Amit", "India"},
{"Kishan", "UK"},
{"Rahul", "USA"}
};
}
}
Thanks,
Amit Bhoraniya