Friday, September 23, 2016

Installing Robot framework on windows

Step 1.

 Download and install java ( Link :-  https://www.java.com/en/download/ )


Step 2.


Download and  Install python.  ( Link :-  https://www.python.org/downloads/release/python-2710/ )

                        -  Recommended version 2.7.10


After installing, set below python paths in environment variables.

-          C:\Python27

-          C:\Python27\Scripts
To check version of python, open command prompt and type 'python'. Installed python version will be displayed.

Step 3.


Download Jython installer jython_installer-2.7.0.jar. ( Link :-  http://www.jython.org/downloads.html )


Install Jython by double clicking on the “jython_installer-2.7.0.jar”.


After installing, set jython path “C:\jython2.7.0\bin” in environment variable.


To Check version of jython, open command prompt and type 'jython'. Installed jython version will be displayed. If a traceback error is displayed then you have to set java home with the jre path. To do this use below command.

 “set JAVA_HOME=C:\Program Files\Java\jre7” 
 Step 4.

Install robot framework by typing “pip install robotframework==2.9.2” in command prompt.
To check version of robot framework type “pybot –version” n command prompt.



NOTE: If jybot.bat is missing in your python Scripts directory (C:\Python27\Scripts) , just simply create one with the content as below.                     


@echo off
jython "C:\Python27\Lib\site-packages\robot\run.py" %*

 


No comments:

Post a Comment