Running a RobotFramework test on GitHub actions

Pradap Pandiyan
4 min readMar 10, 2024

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:

  1. A GitHub repository containing your Robot Framework tests.
  2. 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…

--

--

Pradap Pandiyan
Pradap Pandiyan

Written by Pradap Pandiyan

I’m a passionate QA Engineer. I’m a motovlogger, content creator, off-roader and freelancer. Buy me a coffee here https://www.buymeacoffee.com/pradappandiyan