This action runs Robot Framework tests using nizolli image v3.
BROWSER, ROBOT_TESTS_DIR & ROBOT_REPORTS_DIR have to be defined.
robot_test:
runs-on: ubuntu-latest
name: Run Robot Framework Tests
steps:
- uses: actions/checkout@v2
- name: Execute Robot tests
uses: carlosnizolli/robotframework-docker-action@browser
env:
DOCKER_SHM_SIZE: 11000000
BROWSER: firefox
ROBOT_TESTS_DIR: ${{ github.workspace }}/Testes
ROBOT_REPORTS_DIR: ${{ github.workspace }}/reports
ROBOT_THREADS: 5
PABOT_OPTIONS: --verbose --processes 5 --outputDir ROBOT_REPORTS_DIR
METRICS_LOGO: http://myserver.com/mylogo.svg
ROBOT_OPTIONS: "--exitonfailure --name Teste"
TZ: America/Sao_Paulo
${{ github.workspace }}
This is github`s own environment variable that resolves to workspace directory that contains the repository files.
ROBOT_TEST_DIR
Defines path where the tests are located
ROBOT_REPORTS_DIR
Defines path where results are stored. If directory doesn`t exists its created automatically. Logs and metrics files will be generated in this directory.
BROWSER
You can use either chrome or firefox as argument for Selenium Lib and firefox for Browser Lib
'ROBOT_OPTIONS, TZ and METRICS_LOGO' are optionals
If you want to execute tests in parallel use ROBOT_THREADS
environment variable eg. ROBOT_THREADS: 2
.
The versions used are:
- Robot Framework 4.1
- Robot Framework DatabaseLibrary 1.2.4
- Robot Framework Datadriver 1.4.1
- Robot Framework DateTimeTZ 1.0.6
- Robot Framework Faker 5.0.0
- Robot Framework FTPLibrary 1.9
- Robot Framework IMAPLibrary 2 0.4.0
- Robot Framework Pabot 2.0.1
- Robot Framework Requests 0.9.1
- Robot Framework SeleniumLibrary 5.1.3
- Robot Framework SSHLibrary 3.7.0
- Firefox ESR 78
- Chromium 86.0
- Amazon AWS CLI 1.20.6
- Percy 2.0.2
- Robot Framework Percy for SeleniumLibrary
- Robot Framework Metrics Report 3.2.2
- Axe Selenium Library 2.1.6
- Browser Library
credit ref. https://github.com/joonvena/robotframework-docker-action