How to setup a CI server to run selenium tests?
• INSTALL packages (yum) • firefox.x86_64 1.5.0.12-0.8.el4 installed • xorg-x11-Xvfb.x86_64 6.8.2-1.EL.33 installed • Edit /etc/inittab set default run level to 3 /etc/inittab id:3:initdefault: • Add startup script for Xfvb (in /etc/init.d/Xvfb and linked to /etc/rc3.d/S99Xvfb) Xvfb :1 -screen 0 1024x768x24 > /tmp/Xvfb.log 2>&1 & • Under the user that will be running selenium tests add ‘export DISPLAY=:1.0’ to $HOME/.bash_profile. • When pointing selenium to your browser use the following string “*firefox /usr/lib64/firefox-1.5.0.12/firefox-bin”. • To see sample selenium targets look at this build.