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).
Requirement:-Creating our first test case in RIDE?
Pre-requisites:- We would use the existing code in our firstexample which can be saved in .robot or .txt extension.
We can launch it by writing the command ride.py on command prompt.
Incase we have installed it using windors .exe installer it would gave use option to create desktop shortcut to launch it.
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.
Opening our test case (like .htm/.html/.tsv/ .txt/.robot files) in RIDE.
Click on Open Test Suites (ctrl+o) and browse for file to open
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.
Understanding the structure of the opened Test Case.
We can see that opened test case contains Variables, TestCases, Keywords and also settings table(it is on the right of the explorer window).
Further if we open the “Text Edit” tab, it would contain our test case in raw form.
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.
To run the test case
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.
After successful execution result logs would be shown.