Friday, October 31, 2014

Step by Step guide to installing Robot Framework

Robot framework has been a little tricky for most folks though now provides an installer for windows, but still it is best to know the detailed steps if you do not wish to use the Installer.

So let's get started -

Installing Robot framework - requires Python installation first as a pre-requisite.

All steps below for Windows OS (32/64 bit)

Step 1. Install Python version 2.7.8 
(supported Python version for Robot Framework version greater than 2.7)
Installer Files:  python-2.7.8 - for 32 bit / python-2.7.8.amd64 - for 64 bit

Ex. Installed at c:\python27\

Update PATH environment variable for Python -


**Verify Python installed and the path set
Run command:
cmd C:\>python -help
Lists python command line options

Step 2. Install setuptools 7.0
(Easily download, build, install, upgrade, and uninstall Python packages)

Run command :
cmd C:\>python
"Installed c:\python27\lib\site-packages\setuptools-7.0-py2.7.egg"

**Verify Setup Tools folder and files available -
setuptools-7.0-py2.7.egg file created under ..\lib\site-packages

Step 3. Install pip
(Python Package Manager)


Run command :
Downloading/unpacking pip
Installing collected packages: pip
Successfully installed pip
Cleaning up...

**Verify pip folder and files available -

NOW you can install ROBOT FRAMEWORK finally !

Option 1 - Install Robot framework using pip

Run command :
C:\Python27\Scripts>pip install robotframework
Downloading/unpacking robotframework
Successfully installed robotframework

**Verify pybot.bat created under C:\Python27\Scripts

** Verify Robot framework installed
C:\>pybot --version
Robot Framework 2.8.6 (Python 2.7.8 on win32)

Option 2 - Install Robot framework using the Windows installer

Pre-requisite - Python installed
Installer Files:  / robotframework-2.8.6.win32.exe

Option 3 - Use the Stand-alone Robot framework JAR package
Robot Framework is also available as a stand-alone robotframework.jar package.
This package contains Jython and thus requires only JVM as a dependency.

Maven Central -

Assumes java installed already
** Verify Java installed
cmd c:>java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

Pre-requisite - Python installed

File: robotframework-2.8.6.jar

Run command:
cmd C:\dev\robotfx\jar>java -jar robotframework-2.8.6.jar

** Verify Robot framework installed ...

robotframework.jar - Robot Framework runner.
Usage: java -jar robotframework.jar [command] [options] [input(s)]

Hurray, you are NOW READY to use the Robot Framework for writing your tests !!

Photo Credit: