我的selenium RC
java -Dfile.encoding=utf-8 -jar .\selenium-server-standalone.jar -timeout 7200 -userExtensions "D:\workspace\selenium-remote-control-1.0.3\selenium-server-1.0.3\user-extensions.js" -htmlSuite "*firefox" "http://localhost:8080" "D:\workspace\eap\web\src\selenium\suite.html" "D:\eapfirefox20140828.html"
我是用selenium ide写好了一个测试集testsuite:D:\workspace\eap\web\src\selenium\suite.html,然后用命令行来选择浏览器启动
java -jar .\selenium-server-standalone.jar(这里是相对路径)
启动jar包
-Dfile.encoding=utf-8 设置编码
-timeout 7200 设置时间
-userExtensions "D:\workspace\selenium-remote-control-1.0.3\selenium-server-1.0.3\user-extensions.js" 要用到的js
-htmlSuite "D:\eapfirefox20140828.html"测试报告输出到这里
"*firefox" 设置浏览器中类,测试兼容性
"http://localhost:8080" 被测试的网站
"D:\workspace\eap\web\src\selenium\suite.html" 我的selenium ide脚本