This project involves the testing of the Customers Module on the OpenCart Demo Platform using the Pytest FrameWork
- Page Object Model
- HTML Reports
- Automation logs
- Multiple Browsers Support
- Parallel Testing
- Register User on the OpenCart Demo site
- Login User
- Search for Products and add to Shopping Cart
- Check out Products in the Shopping Cart
- Python
- Pytest
- pytest-html
- pytest-xdist
- Openpyxl
- Allure-pytest
To install the required libraries for distributed testing, run the following command in your terminal:
pip install -U pytest
pip install pytest-html
pip install pytest-xdist
pip install openpyxl
pip install allure-pytest
Test Execution commands can be found in the run.bat file located in this respository
- Chrome (--browser chrome)
- Edge (--browser edge)
- Firefox (--browser firefox)
e.g.
pytest -s -v -m "sanity" --html=./Reports/report.html testCases/ --browser chrome
This will run test on Chrome Browser
N/B: If no browser is specified test will be executed on chrome