Ruby, etc

Learn all the things

He who enjoys doing and enjoys what he has done is happy. - Fortune Cookie

Setting Up Jenkins for Robot Framework

Robot framework is a test automation framework. There are many uses for it, but I use it for selenium web testing. But no matter what you test you can use it for many things.

Jenkins a tool to manage “jobs”, segments of work that you might use “cron” for.

I use it to run robot framework tests nightly or every 6 hours, or whatever you need.

Jenkins is breeze to set up (at least on mac) and once installed search in the plugins for the robot framework plugin. The directions on the plugin page are good but. However, If you wish to view the report you have to enable Javascript on jenkins.

There have been lots of questions on this subject but it all comes down to jenkins permissions.

To view the beautiful reports by robot framework you must relax the ridged rules explained here. This new feature was added in Jenkins 1.641.

Once JS is enabled then you can view the report and drill down on areas you want to see, including screenshots.

Another jenkins plugin I’ve found useful is Naginator to restart a job after a failure.

Once the Jenkins plugin is installed, configure your robot command line:

Build Step

And then your results:

Post Build