Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toghrulmirzayev/ui-simulator-python-testing
https://github.com/toghrulmirzayev/ui-simulator-python-testing
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/toghrulmirzayev/ui-simulator-python-testing
- Owner: ToghrulMirzayev
- Created: 2023-11-18T23:57:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-01T20:34:44.000Z (about 1 year ago)
- Last Synced: 2024-10-12T14:14:33.933Z (2 months ago)
- Language: Python
- Homepage: https://toghrulmirzayev.github.io/ui-simulator-python-testing/pyreport.html
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ui-simulator-python-testing
Automated tests for ui-simulator: `https://toghrulmirzayev.github.io/ui-simulator/`
# Overview
Testing developed using Page Object Model pattern,
by following OOP principles and clean code rules.
You can run tests both locally and via CI.
Secrets encrypted in CI environment variables.
Check below guide to set up secrets locally.# Getting started
* Clone repository to your local machine
* `git clone https://github.com/ToghrulMirzayev/ui-simulator-python-testing.git`* Create virtual environment
* `python -m venv venv`* Activate virtual environment
* Windows
* `venv/Scripts/activate`
* MacOS/Linux
* `source venv/bin/activate`* Create `.env` file and fill it as shown below
* ```text
TEST_USERNAME = "correct_username"
TEST_PASSWORD = "correct_password"
```
* Install dependencies
* `pip install -r requirements.txt`* Run tests
* To run all tests
* `pytest`
* To run only specific scope
* `pytest -m smoke`
* To run tests filtering by name
* `pytest -k "test_something"`
* To send test result to the telegram channel
* `pytest --telegram-pyreport --server `
* Test Results
* https://toghrulmirzayev.github.io/ui-simulator-python-testing/pyreport.html