The pytest and selenium E2E test framework
1. Install chrome with version 81 or 83
- For mac: Please refer to the chrome install url
2. Install python3 or use python venv to your machine
python3 -m venv pytest
source pytest/bin/activate
3. Install requirement python3 library
cd pytest_selenium
pip install -r requirements.txt
3. Run the pytest framework test case.
cd pytest_selenium
python3 -m pytest
For more command example:
- Run test with test report file E.g.
python3 -m pytest --html=test.html
- Run test with stdout log. E.g.
python3 -m pytest -s
- Python Virtual Environment: virtualenvwrapper
- Chrome Install: chrome install for mac