QA needs to execute their daily Sanity Tests on Jenkins. To run Selenium Tests we need a machine connected to monitor. And if we don't have such an arrangement then we can follow the steps below to run Selenium Tests on a headless Jenkins Server.
Never run daily runs on tools like Saucelabs.com or browserstack as its a costly affair.
1. Install Xvfb on Jenkins Server
Never run daily runs on tools like Saucelabs.com or browserstack as its a costly affair.
1. Install Xvfb on Jenkins Server
yum install xorg-x11-server-Xvfb
2. Install Firefox on Jenkins Server
yum install firefox3. Install https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin on Jenkins
4. In you Job, configure as follows
5. When you run the Job, it will create a screen and execute tests on that screen with GUI
Enjoy your daily runs now :)
~ Yagnanarayana Dande
No comments:
Post a Comment