【发布时间】:2018-01-16 13:56:29
【问题描述】:
我做了如下网格设置:
集线器: iMAC
开始于: java -jar 下载/selenium-server-standalone-2.52.0.jar -port 4444 -role hub
节点 1: Win8系统
开始于: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http://192.168.1.103:4444/grid/register -nodeConfig Node1.json
节点 2: Win10系统
开始于: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http://192.168.1.103:4444/grid/register -nodeConfig Node2.json
json的内容如下:
{
"capabilities":
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"platform": "WINDOWS",
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver"
}
],
"configuration":
{
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 10,
"port": 5557,
"host": ip address of node1,
"register": true,
"registerCycle": 5000,
"hubPort": 4444,
"hubHost": ip address of hub
}
}
集线器和节点已正确启动。当我在套件 xml 中运行包含 20 个测试的 testng 套件时,thread-count="10"
我看到只触发了 5 个会话,
- Node1 上 3
- Node2 上的 2 个
预期/想要实现: 应该触发 10 个会话,每个节点上 5 个。
我尝试使用不同版本的 selenium 服务器独立设置相同的设置,但没有运气!!!
如果我做任何配置错误,请告诉我。
【问题讨论】:
标签: automation automated-tests selenium-grid ios-ui-automation