node config

@echo off
title node_5560
cd /d %~dp0
java -jar selenium-server-standalone-2.48..jar ^
-role node ^
-Dwebdriver.ie.driver="IEDriverServer.exe" ^
-Dwebdriver.chrome.driver="chromedriver2.25.exe" ^
-Dwebdriver.firefox.bin="D:\program\firefox\firefox.exe" ^
-nodeConfig nodeconfig.json
pause

如果不加 -Dwebdriver.ie.driver,也可以把Driver放到path中。

下面是nodeconfig.json

{
"capabilities":
[
{
"seleniumProtocol": "Selenium",
"browserName": "*firefox",
"maxInstances":5
},
{
"seleniumProtocol": "WebDriver",
"browserName": "firefox",
"maxInstances":5
},
{
"seleniumProtocol": "WebDriver",
"browserName": "internet explorer",
"maxInstances":3
},
{
"seleniumProtocol": "WebDriver",
"browserName": "chrome",
"maxInstances":3
},
{
"browserName": "*iexplore",
"seleniumProtocol": "Selenium",
"maxInstances":3
},
{
"browserName": "internet explorer",
"seleniumProtocol": "WebDriver",
"maxInstances":3
}
],
"configuration":
{
"proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession":10,
"port": 5560,
"host": "10.57.130.193",
"register": true,
"registerCycle": 3000,
"hubHost":"10.57.130.193",
"hub":"http://10.57.130.193:4444/grid/register",
"hubPort":4444,
"nodeStatusCheckTimeout":3500
}
}

  

上一篇:Log4net 配置详解


下一篇:Java使用POI为Excel打水印,调整列宽并设置Excel只读(用户不可编辑)