@echo off
title Selenium_Hub
cd /d %~dp0
java -jar selenium-server-standalone-2.48.2.jar -role hub -hubConfig hubconfig.json
pause
下面是 hubconfig.json
{
"host": 10.57.130.193,
"port": ,
"newSessionWaitTimeout": ,
"servlets" : [],
"prioritizer": null,
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
"throwOnCapabilityNotPresent": true,
"nodePolling": ,
"cleanUpCycle": ,
"nodeTimeout": ,
"timeout": ,
"browserTimeout": ,
"maxSession": ,
"jettyMaxThreads":-
}