selenium grid启动多个Rc的bat---SHE平台可能会用到
Start.batrem function: start port selenium rcrem author :wangmihu
rem create:2010-06-02
@echo off
set grid="D:\Program Files\seleniumgrid"
for /l %%i in (1111 1111 9999) do (
echo cmd /c "cd /d %grid% && ant -Dport=%%i -Dhost=localhost -DhubURL=http://localhost:4444 launch-remote-control" > %%i.bat
)
for /l %%i in (1111 1111 9999) do (
start "%%i" %%i.bat
ping 127.0.0.1 -n 2
del %%i.bat
)Killall.batTASKKILL /F /IM cmd.exe /T
[ 本帖最后由 小米啊 于 2010-8-3 15:22 编辑 ]
页:
[1]