TestNG Parallel execution with selenium
问题 If i need to run same one method with two different browser at the same time then how will i implement it? For example: public class AppTest2{ @parameters("browser") @Test(dataProvider="loginData") public void login(String userName , String password, String param){ if(param.equals("firefox"){ //do something } if(param.equals("chrome"){ //do something else } } } in my testng.xml file contains: <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name ="My sutie" parallel =