Why to use Robotframework with Selenium

Use Case: You need to write a framework to automate your webrowser

Confusion of Selection

You have selenium to automate all the web related work e.g login,click,button and many more thing.But,then you have to use it with some languages , e.g. Java ,Ruby, Python.

Suppose you get a project to automate a webbrowser by using any other languages , where your task would be
1)login to browser
2)Fill user details
3)Click on submit

Now to have a good framework , you need to break down these tasks into smaller component

1) you need to define test cases
2) You need to have a separate file to store variables
3) You need to have a good reporting tool , which will show how many test cases passed or failed and further drill down.
I am a python user,so lets talk the problem with python,selenium

Python-Selenium drawbacks

1) you can write the test cases with unit test module ,But then generating a good test reports would be headache , you have to spend a lot of time to create good test reports

2) Drilling down to the test cases for debugging errors would be another headache

Now coming to RobotFramework,If you integrate selenium library in robotframe work, you would be able to do almost similar thing which can be done by any other languages with lot of ease and control.

Taking example of your assignment in hand

1) You can define Test cases
2) You can Create a seprate variable file and then pass it with main file during run time (check pybot -V)
3)You dont need to be worry about reporting part , all the reports would be generated and with better drill down options
 
Additional advantage

1) There are lots of inbuilt libraries, which will help you to do your task easily
2) You can create your own custom library and import in Robotframework
3) You would be able to drill down till last variable where the problem is with help of RobotFramework Reports, which will save lots of time


In Nutshell I can say Robotframework provide a building block to your framework where you just need to worry about the functional aspect of your program

Comments

Popular posts from this blog

How to connect adb devices to linux container

How to start with APPIUM PYTHON

Configuring jenkins with Robot Framework