0% found this document useful (0 votes)
212 views5 pages

Robot Installation Guide

To install Robot Framework on Windows, the document outlines downloading Python 2.7, setting environment variables, installing required libraries through pip including Robot Framework, SeleniumLibrary, and databases, downloading browser drivers, and troubleshooting common errors such as missing DLLs. The uninstallation process removes Python, libraries, and environment variable changes.

Uploaded by

Rajat Sen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views5 pages

Robot Installation Guide

To install Robot Framework on Windows, the document outlines downloading Python 2.7, setting environment variables, installing required libraries through pip including Robot Framework, SeleniumLibrary, and databases, downloading browser drivers, and troubleshooting common errors such as missing DLLs. The uninstallation process removes Python, libraries, and environment variable changes.

Uploaded by

Rajat Sen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

How to Install Robot for Windows

How to setup Robot Framework on your Windows 7 Laptop Note: Robot Framework currently
supports Python versions 2.5, 2.6, and 2.7. Robot Frame 3.0 now supports Python 3.3. We will
be using Python 2.7 for our installation.

Steps to Install
1. (https://www.python.org/downloads/) Select Python 2.7.x, NOT PYTHON 3.x.x
2. Double-click the python installation file.

Install for all users -> click next


Accept the default directory -> next
When Customize Python appears, scroll the list to bottom and enable the option to add
Python.exe to Path in your environment variables.

Click Finish

3. Check Python version

Open Windows PowerShell or Command Prompt


enter, python --version
Example response: "Python 2.7.11"

4. Set https_proxy in the Windows Environment Variables.


Open Start > Settings > Control Panel > System > Advanced > Environment
Variables
--or-- Start > right-click Computer and select Properties > Advanced
system settings > Environment variables
Add the following new environment variables to your "system variables"
If on a Laptop connected to ECN -> HTTPS_PROXY www-proxy.exu.ericsson.se:8080
(DISCLAIMER: THIS MAY CHANGE AT ANYTIME)
If on a Remote Desktop in the lab -> HTTPS_PROXY 10.7.0.140:8081 (this is in the DC-
1 lab)

5. Install Microsoft Visual C++ Compiler for Python 2.7

http://www.microsoft.com/en-us/download/details.aspx?id=44266
double-click the "VCForPython27.msi" installation file and follow the default installation
instructions

6. The following PIP commands require a Windows PowerShell or command prompt to


execute.
7. Install latest version of Robot Framework

pip install robotframework


reference: https://github.com/robotframework/robotframework/blob/master/INSTALL.rst

8. Install Selenium Libarary

pip install robotframework-selenium2library


reference: https://github.com/rtomac/robotframework-selenium2library

9. Install ssh library

pip install robotframework-sshlibrary


reference: https://pypi.python.org/pypi/robotframework-sshlibrary

10. Install database library

pip install robotframework-databaselibrary


reference: http://franz-see.github.io/Robotframework-Database-Library/

11. Install http library

pip install robotframework-httplibrary


reference: https://github.com/peritus/robotframework-httplibrary/

12. Install pytz Python Package

pip install pytz


reference: http://pytz.sourceforge.net/
13. Install Oracle Instant Client (WARNING please download 32-bit for Windows)

Oracle Instant Client must be installed before Cx_Oracle


http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Get the latest version of 32-bit 12.1 (EXAMPLE: instantclient-basic-nt-12.1.0.2.0.zip)
extract the .ZIP folder and move the sub-folder under C:\. Example C:\instantclient_12_1
Add the above file directory (C:\instantclient_12_1) to the Windows Environment
variable PATH

14. Install cx-Oracle (WARNING please download 32-bit for Windows)

http://cx-oracle.sourceforge.net/
DO NOT USE PIP, CLICK LINK TO DOWNLOAD FROM PyPI

Download the latest version, for example cx_Oracle-5.2.1-12c.win32-py2.7.exe (md5)


double-click installation file
accept all default settings by clicking "next" a few times
Once installation window closes, open Control Panel -> Programs and Features
Look for "Python 2.7 cx_Oracle_(your version)"

15. Download Internet Explorer Driver for Selenium

Create a folder to store the driver. For example C:\selenium_drivers


(http://docs.seleniumhq.org/download/), Download 32 bit Windows IE and save in folder
above
Edit Windows Environment PATH to include the folder location of these drivers.

16. Download Chrome Driver for Selenium

Create a folder to store the driver. For example C:\selenium_drivers


(https://sites.google.com/a/chromium.org/chromedriver/) Download 32 bit Chrome
Driver and save in folder above
Edit Windows Environment PATH to include the folder location of these drivers (may
already be done in the step above).
Example Environment Variable for PATH

C:\selenium_drivers;C:\Oracle\instantclient_12_1;C:\Python27\;C:\Python27\Scripts;C:\app\ea
lleda\product\11.2.0\client_1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System
32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SystemRoot%\system32;%
SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files
(x86)\SQL11\DLL;C:\Program Files (x86)\SQL11\BIN

TROUBLESHOOTING:

 If you get the warning: "GMP or MPIR library not found"


o Ensure Microsoft Visual C++ Compiler for Python 2.7 is installed. You can get
this application from http://www.microsoft.com/en-
us/download/details.aspx?id=44266

 If you are getting DLL cannot be found it can be one or two things:
o please make sure the Microsoft Visual C++ 2010 x86 Redistributable
(http://www.microsoft.com/en-us/download/details.aspx?id=5555) and Microsoft
Visual C++ 2010 x64 Redistributable (http://www.microsoft.com/en-
us/download/details.aspx?id=14632). The 2008 version may also be needed.
o re-check the WINDOWS Path configuration
(C:\selenium_drivers;C:\Oracle\instantclient_12_1;C:\Python27\;C:\Python27\Scr
ipts;)

 If PIP does not work:


o Install "pip", there is an installation guide at
(https://pip.pypa.io/en/latest/installing.html)

To install pip, securely download "get-pip.py" (https://bootstrap.pypa.io/get-pip.py)


Open CMD prompt in Windows
Start > All Programs > Accessories > Command Prompt (Don't forget to right-click and
run as administrator)
Change directory to the location where you downloaded "get-pip.py"
In the Command Prompt, type "python get-pip.py"

 PIP may throw warnings on each command.


o There is a know issue with pip 8.0.0 and Python 2.7.x
o recommend keeping pip 7.1.2 that came with Python installation until the issue
can be fixed

How to Uninstall Robot


1. Open Control Panel -> Programs -> Programs and Features
2. Uninstall Microsoft Visual C++ Compiler Package for Python 2.7
3. Uninstall cx_Oracle, "Python 2.7 cx_Oracle-version"
4. Uninstall Python 2.7.x
5. Delete C:\Python27 directory, if present
6. Delete C:\instantclient_12_1
7. Delete C:\selenium_drivers
8. Remove the following from the PATH environment variable in Windows

C:\Python27\;C:\Python27\Scripts;C:\selenium_drivers;C:\instantclient_12_1

You might also like