For this I assume you already familiar with the concepts and setup in Part 1.
On the Hub server shut down Selenium Grid Hub and following the Ubuntu/Debian instructions on the Hudson site:
- wget -O /tmp/key http://hudson-ci.org/debian/hudson-ci.org.key
- sudo apt-key add /tmp/key
- sudo apt-get install daemon
- wget -O /tmp/hudson.deb http://hudson-ci.org/latest/debian/hudson.deb
- sudo dpkg --install /tmp/hudson.deb
- This will add /etc/apt/sources.list.d/hudson.list which means apt will now keep things up to date
- sudo apt-get update
- sudo apt-get install hudson
You can now got to http://[hub ip]:8080/ and Hudson will be up and running.
- Manage Hudson -> Manage Plugins -> Advance
- Click "Check Now" in bottom right corner
- From the Updates page install any plugins that need to be updated
- From the Available Plugins in page select Selenium Plugin which has the description of "This plugin turns your Hudson cluster into a Selenium Grid cluster"
- Install it
Hudson is now responsible for running the Selenium Grid Hub and you can see it at http://[hub ip]:4444/console you can also see a new item on the Hudson menu for Selenium Grid and this will show you that your Remote Control nodes have hooked up.
So now we will make a job that runs the example build in parallel so we can see it run on the nodes.
- I set up a Free Style Project
- I gave it a custom workspace of /home/selenium/selenium-grid-1.0.8 this is where I unzipped things in Part 1
- I'm just executing shell command of ant run-demo-in-parallel
- Save that and from the dash board click build and watch the screen on your nodes
- You will see the browsers pop up on the nodes and do stuff. Like Part 1 the tests will fail
- Part 1 - Getting Started
- Part 2 - Getting Hudson to run the tests
- Part 3 - Integrating Selenium Python tests with Hudson and having them run in parallel
- Part 4 - How to get Multiple Browsers and Operating Systems working
Upcoming ideas for the series:
- Putting the test suite in SVN and running from there