嘿。
我在使用 Selenium Remote control 运行 selenium 测试时遇到问题。
打开控制台窗口并键入以下命令后:
java -jar selenium-server-standalone-2.2.0.jar -htmlsuite *firefox http://book.theautomatedtester.co.uk "c:\Users\abc\Desktop\Selenium\selenium-remote-control\testsuite.html" "c:\Users\abc\Desktop\Selenium\selenium-remote-control\result.html"
火狐浏览器正在启动
但是我的测试没有运行,并且在控制台中显示:检查资源别名(卡住了)
有人可以帮我解决这个问题吗? :)
谢谢
最佳答案
您可能引用了 Selenium 测试用例 html 文件,而不是测试套件 html 文件。尝试创建一个测试套件,并将您的测试用例添加到该文件中。然后在调用命令时引用测试套件文件路径作为测试套件参数。
关于java - Selenium 远程控制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6845566/