Robot Framework is an automation framework for acceptance testing. It empowers testers to automate and manage complex workflow scripts efficiently. Its testing capabilities can be enhanced by test libraries implemented either with Python or Java. Robot framework uses selenium library as a testing tool to test web applications internally.
The features given below ensure that testing is done in a quick and proficient fashion.
Easy to create Data-driven and Keyword-driven test cases.
Separate test data editor, RIDE – a light-weight and intuitive editor for writing test case files.
Clear reports and detailed logs.
Let’s create a test case using selenium2 library in Robot Framework. We will see how the user is able to enter an application using Robot framework.
Create a project in RIDE.
Communicate with web application and read elements from web application using selenium2 library.
Enter values in the application, and log in using RIDE.
Generate auto HTML report and log.
Create a New project using RIDE inside a directory.
Add a test suite file under the above created project.
Add library selenium2 in test suite file using library button.
Open test suite in edit panel and click library button.
Add library name in Name field inside library panel.
Add new test cases with test suite and create user keywords for the test case.
Define all user defined keywords.
Right click on test file and click on add new user keyword,named – Open application.
Give the keyword as “Open application” ,it will get added.
To open URL, add the predefined keywords in a table and its corresponding values.
Similarly, repeat the process for other user defined keywords.
Now to run test case , check the test case and click on run button.
Report is generated, automatically. Click the Report button in Run panel.
Report will be generated in HTML format.
It is simple to create test case using RIDE.
RIDE gives output quickly in HTML format automatically.
We can easily communicate with Python and selenium2 library.
Automation testing of web applications is comfortable and easy to use.