Implement Robot Framework using RIDE (Part-1) – User friendly Tech help

Starting with installation prerequisite of robotframework(RF), we learned how to create our first test case using RF. Today we would enhance the same test case and implement it in RIDE. (IDE for robot framework).

n

Requirement:-Creating our first test case in RIDE?

n

nDo follow us on  Fb,G+,Twitter, it encourages us to learn and share more.

nn

Pre-requisites:- We would use the existing code in our firstexample which can be saved in .robot or .txt extension.

n

Step1:-

n

Launch RIDE:

n

We can launch it by writing the command ride.py on command prompt.

n

Or

n

Incase we have installed it using windors .exe installer it would gave use option to create  desktop shortcut to launch it.

n

Or 

n

But we did was simply created a .bat file with the ”ride.py”written inside it, now we can launch it by clicking the .bat icon.

nn

Step2:-

n

Opening our test case (like .htm/.html/.tsv/ .txt/.robot files) in RIDE.

n

Click on Open Test Suites (ctrl+o) and browse for file to open

nn

Note: – You can save the code from step-5 in our first testcase example and save it with .robot or .txt format and open it in RIDE.

n

Step3:- 

n

Understanding the structure of the opened Test Case.

n

We can see that opened test case contains Variables, TestCases, Keywords and also settings table(it is on the right of the explorer window).

nn

Further if we open the “Text Edit” tab, it would contain our test case in raw form.

nn

Note:- Incase of error in the file, it would not open up in RIDE. Firstly we need to rectify the error.Like we can run the file on command prompt and observe the failure reasons to correct the file and than try opening in RIDE. 

nn

Step4:-

n

To run the test case

n

We need to open the “Run” tab( or press F8, shortcut to run test case) -> Select the Test Runner(our case it is pybot) -> Click on start.

nn

Step5:- 

n

After successful execution result logs would be shown.

nn

Lets learn more about using RIDE in our Part -2

Was this article helpful?
YesNo

Similar Posts