Aa simple automation framework. Goals covered:
- Design of Features & Scenarios.
- Test Execution Report Structure.
- Automation Layers Organization.
- Handling of Test Data.
- Quality of In-Code Documentation.
- Code Reusability and Maintainability.
- Python 3.8
- Pipenv
- Allure command line
- Selenium webdriver, Chrome, Firefox
pipenv install --dev
On the project path
python -m pytest tests/test_guest.py --alluredir=./results
allure serve ./results
python test/test_name.py
python -m unittest tests/test_name.py
pyhton -m unittest test/test_name.py
pytest file.py::Class::test_case
pytest tests/test_name.py -s -v
python -m unittest discover
python -m unittest discover -s tests
python -m unittest discover -s tests -t src
project/
│
├── my_app/
│ └── __init__.py
│
└── tests/
|
├── unit/
| ├── __init__.py
| └── test_sum.py
|
└── integration/
|
├── fixtures/
| ├── test_basic.json
| └── test_complex.json
|
├── __init__.py
└── test_integration.py
Or
python -m unittest discover -s tests/integration