Thursday, October 7, 2010

Installing Robot Framework on Ubuntu

Lately I've been learning to use the robot framework. These are my notes on how to install it.

Installing pybot - normal robot thing

First install python if it's not already installed.

sudo apt-get install python

Then install easy_install and robotframework.

sudo apt-get install python-setuptools
sudo easy_install robotframework

After this you should have pybot (normal robot thing) installed.

pybot --version
== Should output something like ==>
Robot Framework 2.5.4 (Python 2.6.5 on linux2)

Installing jybot - jython version of robot

I'll assume you have done all the things to install pybot so far (it also installed jybot and all you have to do now is to install correct version of jython).

First a word of warning: Ubuntu is still (you should check is this still valid point if your reading this in the future) using old version of Jython that doesn't work with current jybot.

So we have to first download Jython 2.5 (or later) from jython webpage. Follow jythons installation instructions.

Add JYTHON_HOME to PATH so that you can use it.

After this jybot should work.

jybot --version
== Should output something like ==>
Robot Framework 2.5.4 (Jython 2.5.1 on java1.6.0_20)

No comments: