目前我使用的硒是HTMLSuite。我用来启动服务器和运行a testsuite的命令如下所示
java -jar selenium-server.jar -htmlsuite "*iexplore" "http://localhost:8080" "C:\test\testsuite" "C:\test\result_%Yr%%Mth%%Day%.html"
I have some testsuites which have some sql scripts which need to be run first. 我想要运行它们的顺序如下所示
run sql script 1
run testsuite 1
run sql script2
run testsuite 2
run sql script 3
run testsuite 3
SQL脚本不能同时运行,因此我必须运行一个脚本,运行Selenium测试并继续下一个脚本。
I plan to put these commands in a Windows batch file but i am not sure how to stop the selenium server. The sequence of events in the batch job is like this
run sql script1
start selenium server
run testsuite 1
stop selenium server
run sql script 2
start selenium server
run testsuite 2
stop selenium server
run sql script 3
start selenium server
run testsuite 3
我的问题是:
-
如何阻止SeleServer从Windows批处理作业中删除。
-
我认为最好只启动一次服务器。这将需要能够控制和访问当前窗口。是否可以指定运行Selenium测试的当前活动窗口?