Demo test project using Python, Pytest and Selenium.
- Install Python 3.8
- Install dependencies from
pyproject.toml
file- or use Poetry:
poetry install
- or use Poetry:
- Create
.env
file in the root directory. Example of file:-
BROWSER=Chrome IMPLICIT_WAIT=10 ROOT_URL=https://example.com LOGIN=test@example.com PASSWORD=example123
-
- Run
pytest
command
- Install Java
- Install Allure
- After running tests, run the following commands:
allure generate ./artifacts/allure-results/ --report-dir ./artifacts/allure-report/
allure open ./artifacts/allure-report/