硒并行测试在单个Android设备上无法在网格上运行

时间:2019-04-08 11:41:35

标签: android selenium selenium-grid

enter image description here无法在Android网格设备上运行并行测试。

Caused by: org.openqa.selenium.WebDriverException: Session [3009fb4b-1e45-43f5-a132-01a70e2578c5] was terminated due to BROWSER_TIMEOUT

org.openqa.selenium.NoSuchSessionException: A session is either terminated or not started (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds

当在本地或其他设备上运行chrome浏览器时,测试可以正常运行,但问题仅在于在与appium并行运行的android设备上运行测试。 如果android上的测试不能并行运行,则它们通过。

{
 "capabilities": [
     {
 "deviceName": "xxxx",
 "platformName": "Android",
 "version": "9.1",
 "browserName":"Chrome",
 "maxInstances": 5
     }
 ],
 "configuration": {
 "cleanUpCycle": 2000,
 "timeout": 30000,
 "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
 "host": "xx.xx.xx.xx",
 "port": 4728,
 "maxSession": 5,
 "register": true,
 "url": "http://xx.xx.xx.xx:5555/wd/hub",
 "registerCycle": 5000,
 "hubPort": 5555,
 "hubHost": "xx.xx.xx.xx"
 }
}

请注意,我只有一个用于测试的android设备,并且由于它在网格上有5个实例,因此我想对其进行并行测试。

0 个答案:

没有答案