Skip to main content

5 Steps to Install Robot Framework for Web Testing Automation - 7 minute Guide

Lately, I found myself helping several people to begin their automation testing journey. And what a better place to do it then a nice new installation of a Robot Framework with its Selenium2Library on a Windows OS.

Why Robot Framework with Selenium2Library?

While you are probably here because you are looking for a quick installation guide for Automation Testing platform for you web project, I still need to do my do diligence and explain in couple of words why we need it.
Robot Framework it's a Python framework that allows for a less development oriented Manual QA professionals to do a quick switch into Test Automation. This can be achieved by allowing for easy English phrases (e.g. Click Element, Wait, etc) to replace a more complex Python syntax.
Selenium2Library it's additional add on on top of Robot Framework that allows easy interaction with web elements during the automation process.

That's it..... DONE with the talking now the installation....

Installation process

Robot Framework can be used with any textual editor but the easiest way to edit and work with the automation scripts is by using RIDE UI. This UI does not support Python 3 hence in this guide we will be using the latest Python 2.8 installation guide.

Shopping List:

In order to get going with our Automation testing Web Package we will need:

  1. Python 2.7.xx - the development language for all our tests
  2. wxPython - Python Library that allows GUI development and is being used by RIDE
  3. Robot Framework - Automation testing Library we all love that makes our lives easy
  4. Selenium2Library - Our Robot to WEB translator
  5. RIDE UI - The UI that allows us enjoy the Automation Tests creation process

Installations Steps

Step 1 - Get Python:

Our first order of business is to get us a Python 2.7.xx installation this can be done over here:
https://www.python.org/downloads/

Here we will be looking for the latest 2.7.xx version 32 or 64 bit (Sorry Python 3 will not work for us)

Download it, and install it by running the file.

Step 2 - add Python installation to Windows path (if its not there)

If the Python installation did not, for some reason, added both C:\Python27;C:\Python27\Scripts to path please make sure you do that by following those 6 simple side steps:

  1. Open System Properties (Right click Computer in the start menu, or use the keyboard shortcut Win+Pause)
  2. Click Advanced system settings in the sidebar.
  3. Click Environment Variables...
  4. Select PATH in the System variables section
  5. Click Edit
  6. Add Python's path to the end of the list (the paths are separated by semicolons). For example: C:\Windows;C:\Windows\System32;C:\Python27;C:\Python27\scripts

Step 3 - Install wxPython

open a CMD window and there in the blackness write the following command

pip install -U wxPython

if you get an unrecognized command error you have an issue with Step 2 please revisit that step and make sure that Python directory is in the path

Step 4 - Install Selenium2Library

open a CMD window if for some reason you closed, if not just keep on writing within the same window the following command:

pip install -U robotframework-selenium2library

Step 5 - Install RIDE

Still there in the CMD window write the following command
pip install robotframework-ride

Step 6 - Run RIDE and start creating tests

Still there in the CMD window just write the following command
ride.py

Congratulations you made it!!!!! We have installed the full Automation web testing package.




Comments

Popular posts from this blog

7 Most Popular Test Types in Software Testing

Today we are going to return back to basics of software testing and discuss the 7 most popular test types that are being used in every software testing effort. Those different test types cover all the levels of the software to make sure that the final result matching the expectations from every possible angle. Here is our list: Unit testingSmoke testingRegression testingFunctional testingIntegration testingUser Acceptance TestingPerformance Testing


Now let’s have a deeper dive into each one of those by using a simple example of an imaginary system that was created in order to manage warehouse activity including shipments, inventory and goods receptions from suppliers.
Unit Testing This type of testing is usually performed by the developers and is covering the very basic development component. In this test developers are testing the straight forward functionality of a functional piece of code to make sure that it is performing according to their expectations. In our example: This test w…

Story Points estimation for Scrum with Fibonacci vs Shirt Sizes vs Linear - 7 minute guide

It is all began long time ago when Development Teams were constantly asked to provide estimate and they were having a hard time to properly face the task. Let's admit it, there are so many things that can change, happen, and simply go wrong during the development process that one can hardly expect a proper estimation of hours for each task. That why a relative estimation with Story Points came along.

Story Points Estimation
Its a different way to estimate the effort of the Scrum Development Team with-in Agile methodology, which means that instead of estimating hours of work the team estimates each effort relatively to other efforts in the project.
Let's assume that a developer knows that specific 'Task 1' is much harder than another 'Task 2' it is hard for him/her to quantify that harder feeling in hours of additional work but it is possible to say that it much more work. This situation is being address by Story Points when each story point is representing som…