Hudson / SeleniumHQ 插件 - 如何在远程服务器上运行测试?
我的主要问题是让 Hudson 在另一台机器上执行测试:
我正在使用 Selenium 测试一个网站,早期测试进展顺利。现在是时候让 Hudson 在我忙着编码的时候自己测试它了。
我为 Hudson 安装了 SeleniumHQ 插件 并完成了配置和作业设置步骤。
现在,仍然存在一个问题:安装 Hudson 的服务器无法运行测试,因为没有浏览器。它在红帽上运行。我应该做的是让另一台机器(Windows Server 2003)运行测试。
如果我“手动”操作,Selenium 服务器(以前的 Selenium RC)在 Windows 机器上运行得很好,但我只是不知道如何让 Hudson 委托他的测试?
我的工作是使用以下配置,该配置按计划失败(本机上没有浏览器):
构建步骤/脚本:
java -jar /var/selenium/selenium-server.jar -htmlSuite "*chrome" "http://www.google.com" "/var/hudson/jobs/ProjectTestsHTML/workspace/TestSuiteP22.html" "/var/hudson/jobs/ProjectTestsHTML/workspace/results.html"
如何调整它以使其他(Windows)服务器执行 selenium 部分,但继续处理报告由哈德森?
提前致谢。
My main problem is about having Hudson perform tests on another machine :
I'm testing a website with Selenium, and the early testing went well. Now is the time to have Hudson test it by itself while I'm busy coding.
I installed the SeleniumHQ plugin for Hudson and went through the configuration and job setup steps.
Now, a problem remains : the server on which Hudson is installed cannot run the tests, as there is no browser present. It runs on Red Hat. What I'm supposed to do is to have a different machine (Windows Server 2003) run the tests.
Selenium server (the former Selenium RC) works very well on the Windows machine if I do it "by hand", but I just can't figure how to have Hudson delegate his tests ?
My job is using the following configuration, which fails as planned (no browser on this machine) :
Build step / Script :
java -jar /var/selenium/selenium-server.jar -htmlSuite "*chrome" "http://www.google.com" "/var/hudson/jobs/ProjectTestsHTML/workspace/TestSuiteP22.html" "/var/hudson/jobs/ProjectTestsHTML/workspace/results.html"
How can I tweak that to have the other (Windows) server do the selenium part, yet continue to have the reports handled by Hudson ?
Thanks by advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要在不同的机器上运行测试,您可以使用 Hudson Slave 概念。测试可以从主机触发,但将在从机上运行。您可以在此处找到有关如何实现此目标的分步详细信息
To run your tests in a different machine you can use the Hudson Slave concept. The test can be triggered from Master machine but will run in slave machine. You can find step by step details on how to achieve this here