Skip to content

carlosnizolli/robotframework-docker-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Robot Framework with Selenium and Browser Lib

This action runs Robot Framework tests using nizolli image v3.

Example usage

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:

credit ref. https://github.com/joonvena/robotframework-docker-action

About

This Github action can be used to run Robot Framework tests.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%