Setting up Selenium Trifecta
Published on
I will be doing a series for ColdFusion developers to setup, use the Selnium Trifecta, and incorporate Selenium tests into MXUnit. The first entry will show how to setup Selenium Core, Selenium Remote Control, and Selenium Grid. These tools will enable you to do extensive acceptance testing across browsers and operating systems. Next entry will show how to create, run a selenium test, then refactor the test, so we seperate the test data from the test actions making it easier to re-use. I will be startng with a fresh instance of Xubuntu but any OS/Web Server will work. install apache _sudo apt-get install apache2 _/var/www is my apache web root so I ran _sudo chmod -R 777 /var/www _ test by opening browser and going to http://localhost/
Download Selenium Core (Hat tip to Jim Priest for finding the link) use the selenium-core-1.0-beta-1.zip link
unzip and rename folder selenium, then drop in web root (my example /var/www/)
open up browser and try: http://localhost/selenium
I got access denied so I ran again: sudo chmod -R 777 /var/www
Bingo. It works. You should see this.
Select the Selenium TestSuite link then press the Run All Tests button. This will run the sample Selenium test suite.
Download Selenium-RC
Version 1.0 beta 1
Use the Major release link
Unzip, rename rc, then drop in selenium folder (my example /var/www/selenium/)
SeleniumGRID Current Release (1.0.1) Binary Distribution Use the selenium-grid-1.0.1-bin.tar.bz2 link Unzip, rename to sg, then drop in selenium folder (my example /var/www/selenium/)
run just to make sure we have permissions: sudo chmod -R 777 /var/www
Commands 1) change to selenium grid folder, 2) check our ant version is 1.7.0, 3) see if selenium grid is setup
cd /var/www/selenium/sg
ant -version
ant sanity-check I am going to keep this short and to the point. Now we have the Selenium Trifecta setup. Any questions please let me know.