为什么 selenium 挂在 INFO - 检查资源别名上,以及如何调试它?
我正在尝试按照教程此处 使用 jenkins 设置无头硒测试运行。我正在运行 CentOS 5.6,并且已按照说明进行操作。现在,当我运行此命令时:
export DISPLAY=":99" && java -jar /var/lib/selenium/selenium-server.jar -browserSessionReuse -htmlSuite *firefox http://www.google. com ./test/selenium/html/TestSuite.html ./target/selenium/html/TestSuiteResults.html
Selenium 挂在 INFO - 检查资源上别名
。我可以手动运行 TestSuite.html
文件,并且路径是正确的。
我怎样才能开始尝试弄清楚发生了什么?有没有办法连接到显示器来查看发生了什么?我位于公司代理后面,但无论有或没有 -Dhttp.proxyHost 参数,我都会得到相同的挂起结果。
I'm trying to follow the tutorial here to setup a headless selenium test-run with jenkins. I'm running CentOS 5.6, and I've followed the instructions. Now, when I run this:
export DISPLAY=":99" && java -jar /var/lib/selenium/selenium-server.jar -browserSessionReuse -htmlSuite *firefox http://www.google.com ./test/selenium/html/TestSuite.html ./target/selenium/html/TestSuiteResults.html
Selenium hangs on INFO - Checking Resource Aliases
. I can run the TestSuite.html
file manually, and the path is correct.
How can I even begin to try and figure out what's going on? Is there a way I could connect to the display to see what's happening? I am behind a corporate proxy, but with or without -Dhttp.proxyHost
arguments, I get the same hung result.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,在指向内部服务器后,我直接完成了
INFO - 检查资源别名
步骤,所以很明显代理是问题所在。通过尝试访问需要代理的网站,我一次做了太多事情。混杂的变量让我感到困惑。
Well, after pointing at an internal server, I get right on past the
INFO - Checking Resource Aliases
step, so clearly the proxy was the issue.By trying to hit a site that required the proxy, I was doing too much at once. Confounding variables confounded me.
Selenium 未挂在
INFO - 检查资源别名
上。它等待命令执行。您需要使用 ANT 或 Jenkins 中的其他构建工具来触发测试。这应该会让你继续前进Selenium is not hanging on
INFO - Checking Resource Aliases
. Its waiting for a command to execute. You need to trigger your tests using ANT or some other build tool in Jenkins. That should get you going