【发布时间】:2013-07-29 06:06:00
【问题描述】:
我只有一个测试用例,我想在两台不同的机器上运行那个特定的测试用例,比如说一台在 windows 和其他 linux 上。我如何配置我的节点或 selenium 框架,以便它可以同时在不同的机器上并行运行我的测试用例。我已经在我的框架中进行了以下更改以在单台机器上运行它。
DesiredCapabilities cap = new DesiredCapabilities();
cap.setBrowserName("firefox");
cap.setPlatform(Platform.ANY);
driver = new RemoteWebDriver(new URL(nodeURL), cap);
【问题讨论】:
-
看看我对similar question的回答中的第1页
标签: selenium selenium-webdriver selenium-grid selenium-grid2