Running a RobotFramework test on GitHub actions
Robot Framework is a versatile open-source automation framework that allows for easy automation of test cases, acceptance tests, and robotic process automation (RPA). Integrating Robot Framework into your CI/CD pipeline using GitHub Actions can streamline your testing process and ensure the reliability of your codebase. In this article, we’ll walk through the steps to set up and run Robot Framework tests on GitHub Actions.
Prerequisites
Before getting started, make sure you have the following prerequisites in place:
- A GitHub repository containing your Robot Framework tests.
- Robot Framework installed in your project. This can typically be achieved using tools like pip.
This is the sample code taken to run the test. In the sample code, I have added a test to search on Google for a country. This will be a simple test and I haven’t concentrated more on RobotFramework.
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${BROWSER} Chrome
${URL} https://www.google.com
*** Test Cases ***
Open Google Homepage and Search Countries Headlessly
Open Browser ${URL} ${BROWSER} options=add_argument("--headless")
Maximize Browser Window
Input Text name=q Afghanistan
Press…