An open API service indexing awesome lists of open source software.

https://github.com/lynix28/web-robotframework-example

Web automation testing example project
https://github.com/lynix28/web-robotframework-example

automated-testing bdd-tests robot-framework robotframework robotframework-browser web-testing

Last synced: 6 months ago
JSON representation

Web automation testing example project

Awesome Lists containing this project

README

          

# web-robotframework-example

[![CircleCI](https://circleci.com/gh/lynix28/web-robotframework-example/tree/master.svg?style=shield)](https://circleci.com/gh/lynix28/web-robotframework-example/tree/master)

Web automation testing example project using Robot Framework

- Requirements

- Python 3
- NodeJS 12 or later

- Setup Virtual ENV

- Install venv
- `pip install virtualenv`
- `virtualenv ${PROJECT_FOLDER}/venv`

- Activate venv
- `source ${PROJECT_FOLDER}/venv/bin/activate`

- Install Dependencies

- `pip install -r requirement.txt`
- `rfbrowser init`

- Run File Test (Example)

- Create `reports` directory
- Run all test
- `robot -d ./reports/ ./tests/.`

- Run test by Tag
- `robot -d ./reports/ -i "SanityTest" ./tests/.`

- Run specific Testcase
- `robot -d ./reports/ ./tests/${TESTCASE_NAME}.robot`

- Run with specific web browser (available browser: Chromium, Firefox, Webkit)(Default browser is Chromium)
- `robot -d ./reports/ -v BROWSER:firefox ./tests/${TESTCASE_NAME}.robot`

- Run HEADLESS mode
- `robot -d ./reports/ -v HEADLESS:True -v BROWSER:firefox ./tests/${TESTCASE_NAME}.robot`

- Run in Parallel (Need more RESOURCES)
- `pabot --processes 2 -d ./reports/ ./tests/.`
- you can change the 'processes' with your desire

- With Docker

- Build and run a docker container with `Dockerfile`
- Copy test project to `/app/` directory with docker copy command
- Run test file inside docker container (must use HEADLESS mode)