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)
https://www.python.org/downloads/
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 –
C:Python27;C:Python27Scripts;C:Python27ToolsScripts
**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)
https://pypi.python.org/pypi/setuptools#installation-instructions
File: ez_setup.py
Run command :
cmd C:>python ez_setup.py
…….
“Installed c:python27libsite-packagessetuptools-7.0-py2.7.egg”
**Verify Setup Tools folder and files available –
setuptools-7.0-py2.7.egg file created under ..libsite-packages
C:Python27Scriptseasy_install2.7
Step 3. Install pip
(Python Package Manager)
https://pip.pypa.io/en/latest/installing.html
File: getpip.py
Run command :
c:Python27>python get-pip.py
Downloading/unpacking pip
Installing collected packages: pip
Successfully installed pip
Cleaning up…
**Verify pip folder and files available –
C:Python27Libsite-packagespip
C:Python27Scriptspip
NOW you can install ROBOT FRAMEWORK finally !
Option 1 – Install Robot framework using pip
https://pypi.python.org/pypi/robotframework
Run command :
C:Python27Scripts>pip install robotframework
Downloading/unpacking robotframework
………
Successfully installed robotframework
**Verify pybot.bat created under C:Python27Scripts
** 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
https://pypi.python.org/pypi/robotframework
Pre-requisite – Python installed
Installer Files: robotframework-2.8.6.win-amd64.exe / 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 – http://search.maven.org/#search%7Cga%7C1%7Ca%3Arobotframework
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:devrobotfxjar>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 !!