【发布时间】:2015-03-30 11:48:39
【问题描述】:
我有一个内部使用 Cucumber-jvm 的 maven 测试项目。我想使用 Selenium-Grid 2.0 并行运行我的功能文件。
我已经启动了集线器和节点,但是当我运行我的测试时。它仅在一个 chrome 实例中按顺序运行测试。虽然我可以在我的集线器上看到 4 个 chrome 实例。
下面是我的@Before 钩子。
@Before
public void beforeScenario() throws Exception{
//grid code
DesiredCapabilities cap = new DesiredCapabilities();
cap.setBrowserName("chrome");
cap.setPlatform(Platform.MAC);
cap.setCapability("version", "41");
driver = new RemoteWebDriver(
new URL("http://localhost:4444/wd/hub"),
cap);
endUser.is_the_login_page();
}
一些帮助会很有用。 谢谢
【问题讨论】:
标签: selenium-grid cucumber-jvm selenium-grid2