我有一个使用TestNG的基本测试。当我使用invocationcount = 2,threadpoolsize =2(仅用于测试)运行测试时,我可以在intellij中看到测试当前正在运行,但只有一个浏览器打开。
下面是我的代码:
public class GoogleTesting extends FluentTestNg {
// Defines the Driver
public WebDriver driver = new ChromeDriver();
@Override
public WebDriver newWebDriver() {
return driver;
}
@Test(invocationCount = 2, threadPoolSize = 2)
public void GoogleTest(){
goTo("http://google.com");
System.out.println(getCookies());
}
}
有人知道怎么解决这个问题吗?
https://stackoverflow.com/questions/44572866
复制相似问题