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
- Host: GitHub
- URL: https://github.com/lynix28/web-robotframework-example
- Owner: lynix28
- Created: 2022-04-28T20:20:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T08:27:32.000Z (about 2 years ago)
- Last Synced: 2025-02-12T23:38:06.948Z (8 months ago)
- Topics: automated-testing, bdd-tests, robot-framework, robotframework, robotframework-browser, web-testing
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web-robotframework-example
[](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)