How to run the tests on a remote server?

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.


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

链接地址: http://www.djcxy.com/p/50680.html

上一篇: 在Hudson中运行Selenium测试时无法看到浏览器

下一篇: 如何在远程服务器上运行测试?