Best Practice how to integrate selenium

What is the currently best / recommended way to integrate silenium tests in my continua builds ?

Having not used Selenium myself it’s difficult to recommend a best practice, however it is on my todo list to investigate.

From what I have read so far, creating your tests as NUnit tests seems to be the way to go. One thing to remember is that the build runs on an agent, which may not be the same machine each time, so you need to make sure the agent machine can access the Selenium Server service (assuming you have configured it as a service), or configure the test stage to run on a specific agent which can access the selenium server. You can use NSSM to make the selenium server run as a service : http://nssm.cc/

//install as a service
C:\nssm-2.21.1\win64\nssm.exe install Selenium-Server “C:\Program Files (x86)\Java\jre7\bin\java.exe” “-jar C:\Selenium\selenium-server\selenium-server-standalone-2.41.0.jar”

//uninstall Service
C:\nssm-2.21.1\win64\nssm.exe remove Selenium-Server

I’ll try and schedule some testing of this in the next week or so and we’ll post some detailed instructions.

Hi everyone, we have just put up a new blog post stepping through how to setup ContinuaCI with Selenium!

Happy testing, Enjoy and Comment