Selenium Testing in Hudson question

hudsonselenium

I'm having some trouble running a simple selenium test through Hudson.

I've installed the SeleniumHQ plugin for Hudson and configured a job to run a simple test suite which consists of two tests which run fine from the Selenium IDE and from the TestNG plugin in Eclipse.

However, when I try to run them through Hudson, the testing just seems to stall at the end of the first test (regardless of which test it is, I've tried many different ones which are all valid when ran in other enviornments).

The Console Output from Hudson reads as follows:

11:48:09.543 INFO - Java: Sun Microsystems Inc. 14.2-b01
11:48:09.544 INFO - OS: Windows Vista 6.0 x86
11:48:09.559 INFO - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
11:48:09.655 INFO - Version Jetty/5.1.x
11:48:09.656 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
11:48:09.657 INFO - Started HttpContext[/selenium-server,/selenium-server]
11:48:09.657 INFO - Started HttpContext[/,/]
11:48:09.670 INFO - Started SocketListener on 0.0.0.0:4444
11:48:09.670 INFO - Started org.mortbay.jetty.Server@c40c80
11:48:09.825 INFO - Preparing Firefox profile...
11:48:12.046 INFO - Launching Firefox...
11:48:12.919 INFO - Checking Resource aliases

The strange thing is, I can see the first test being ran, and it passes but selenium then doesnt skip onto the next one, and if I create a test suite with just the one test, it simply hangs there indefinitely. Please note that I have an AssertVisible action in the test to check the validity of the results. Do I need to return anything else for Hudson to run the test properly?

Thanks in advance for any help on this…

Best Answer

Could you check if the command line stated by the SeleniumHQ plugin is correct?

  1. In a command window, paste the command and run it
  2. Check if the test start, execute and end normally
  3. Check the result file
Related Topic