Showing posts with label Robot Framework. Show all posts
Showing posts with label Robot Framework. Show all posts

Friday, 1 January 2016

How to install RIDE Editor for Robot Framework on windows


RIDE  editor is used to write and execute test suite for Robot Framework.

It is GUI tool which allows user to write test cases using template base and script. User can choose either ways to write cases.

RIDE only runs on regular Python. It does not run on Jython or IronPython

Precondition

Note: We must use wxPython2.8-win64-unicode-2.8.12.1-py27 if using win64 bit otherwise it will throw an error.

You can Refer my post to know more about Python and Robot Framework installation.

RIDE is distributed as separate installation packages for windows.

Click here to download RIDE packages. 

OR

You can also install RIDE using pip. Click here to know about installation of pip in python.

Open command prompt and navigate to bin directory and run command:

 pip install robotframework-ride


After successful installation of RIDE, it can be started from command like by running ride.py .


                                         OR
Extract zip file of RIDE which you downloaded, go to src/bin and copy ride.py to src
Go to command prompt and go to directory of RIDE editor/src and run python ride.py

In both way It should launch RIDE editor.









Wednesday, 25 November 2015

Integrate Robot Framework with Eclipse



Robot Framework generally use RIDE tool for automating cases, but it happens that many users of Eclipse tool does not like other tool to use.

Here are the few simple steps to integrate Robot Framework with Eclipse:

In order to use Robot Framework we need to install python in system and then have Robot Framework installed.

Refer my post Installing Robot Framework with Python(an interpreter) using 'Selenium2Library' as library to know about Python installation.

Note: Though we can use many scripting language with Robot Framework  like Jython(Java) IronPython(.net platform) etc. but we are considering python in this article.

Get the Eclipse and start it, It should be compatible with Operating system.

Now go to Eclipse  Run menu and select External Tool option and select sub menu named "External Tool Configurations".





Clicking on External Tools Configuration will open one window. Select Program option.


Now It will open new program configuration form. Give any name to this configuration.

Under location field we will give path of pybot.bat file(You can find pybot file in script folder in python directory).

For "Working directory field" select you working directory.

For "Arguments" field give ${selected_resource_loc} as argument.



Now click on apply button and we are ready to run Robot file in eclipse.

To verify go to run configuration menu and click on it.


You will see pybot option added to the list. Now select any test suit and click on pybot option.

It will start executing the suit you are running.


-- Please drop your comments below if you have any query regarding information I have mentioned here.