HOME
Robot Framework is an open-source, test automation framework for Acceptance Testing and Acceptance Test-driven development.
The Framework uses the keyword-driven approach where small understandable words (either pre-defined or user-defined) are used for writing the scripts.
RPA is extensively used for Web Application Automation, API Automation, RPA, and Database Testing.
This framework consists of all the industry standard Framework features with minimal coding.
Robot Framework has an easy syntax, utilizing human-readable keywords. Its capabilities can be extended by libraries implemented with Python, Java, or many other programming languages.
Robot Framework is used by Juniper Networks, Cisco, Axon, US Naval Research Laboratory, ZYMR, Zilogic, Testmo, Rocla, and many more.
How to write automated test scripts?
You can easily create automated test scripts with Robot Framework. Keywords are used not only to carry out actions but also to provide assertion mechanisms. They can be subjected to arguments in order to condition their behaviour.
"Open Browser" and "Title Should Be" are two obvious examples of this. There are many test libraries that provide the necessary bits of automation as keywords, so you don't have to code in Python/Java.
*** Settings *** Documentation To validate the Login Form Library SeleniumLibrary *** Test Cases *** Validate Unsuccessful Login Open the Browser with URL Fill the login form Verify error message is correct *** Keywords *** Open the Browser with URL Create Webdriver Chrome executable_path=/Vibha_Personal/RobotFramework/drivers/chromedriver_linux64 Go To https://opensource-demo.orangehrmlive.com/web/index.php/auth/login Maximize Browser Window Set Selenium Implicit Wait 5 Fill the login form Input Text css:input[name=username] Admin Input Password css:input[name=password] Admin Click Button css:.orangehrm-login-button Verify error message is correct ${result}= Get Text CSS:.oxd-alert-content-text Should Be Equal As Strings ${result} Invalid credentials
Features of Robot Framework
- It supports Test Automation for different data sets, thereby supporting data-driven testing.
- It avoids using large amounts of code and instead employs a behaviour-driven testing approach.
- Test cases are written using keywords (pre-defined or user-defined) in a tabular format.
- Users have the option of creating their keywords.
- It supports the use of Variables, resource files, and Variable files
- It can interact with third-party libraries and functions.
- It allows tagging of test cases that come in handy while trying to run either of the Smoke Test Cases, Regression Test Cases, System Test Cases, etc.
- Excellent HTML Report - It provides detailed reports and logs of the script's execution status, which is very useful if the script fails.
- Complete Logging of the Test Execution - The elaborate reports and logs are generated after every build execution.
- It supports parallel Execution of tests with Thread Safe
- The framework can be integrated with CI/CD Jenkins.
Robot Framework vs. Cucumber
1. The Robot Framework is based on the premise that you can write test cases without having to code because there are numerous libraries available that provide reusable keywords and their underlying code. So, we do need not write code for the business requirements whereas, in the case of Cucumber, we need to write the code for the requirements.
2. Robot covers RPA (Robotic Process Automation); Cucumber doesn't support.
3. Robot Framework has inbuilt extensive logging, which is missing in Cucumber. Cucumber can use a third-party library like Log4J to implement logging.
No comments:
Post a Comment