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

Proper QA estimation in Agile project

  Today, I want to chat about a common issue in Agile development – story point estimation. You see, it's easy to get caught up in estimating how long a feature will take to develop and forget about the crucial Quality Assurance (QA) effort.  It happens to often: your team is in the middle of sprint planning. New user stories are being discussed, and estimations are given, but there's a catch. You've estimated the development time perfectly, but you've barely even glanced at how much effort QA will take. Why? Agile talks about Development Team and you mistakenly thought that it is all about DEVELOPMENT. Sound familiar? Trust me; it's a more common scenario than you might think. So, what's the big deal? Well, when you leave QA effort out of the equation, several not-so-great things can happen: Vilocity can suffer: You might think you can squeeze more into a sprint than is humanly possible, setting your team up for disappointment and overcommitment. Quality can de

Performance testing vs Load testing vs Stress testing

Today I want to discuss a popular topic regarding a difference between Load and Performance testing. Those two types of testing are commonly used together but there are several key differences between the two. To get a better understanding of the topic lets have a real life example from one of my clients and use it to explain the difference. I have worked for a client that was building an in-house web application that provides its customers with an option to select and order different products and services. The request was, before the up-coming release, to test the performance of their product. We started the task by trying and understand what they expect from performance point of view and then went through an exercise of defining what is captured by what test. The client said that they are looking to have about 900-1300 active users on the site at a given moment, and the expected response time (for a page to load) should be less than 5 seconds. With those details what are the t

What is the velocity of an Agile scrum methodology?

Let's discuss some of the important measurements in Agile, and that is the Velocity of the Scrum team work. Based on Wikipedia definition Velocity is " ...the rate of change of its position with respect to a frame of reference and is a function of time...", which when transferred to the scrum world can be summarized as: The amount of work that the scrum team completed in a single measure of time - in a sprint. How we Calculate Velocity? Velocity is actually a very simple to calculate, it is done but totaling the number of story points of fully completed user stories from the sprint backlog. So if a current sprint included 4 user stories: 2 with 8 story points each, one with 3 story points and one with 32 story points. and by the end of the sprint the 32 one was not fully done the velocity calculation will be: 8+8+3=19 Note: the 32 story points are not part of the velocity calculation as this user story was not completed. What Velocity is used for? The v