The purpose of this project is to showcase how to create a test automation framwork to be used in testing REST APIs and generate a readable report.
- Python.
- Pytest.
- Allure reporting template.
- Requests liblary
These are the steps to follow when you want to run the project locally.
Items required to be installed before you can start running the tests. These are instructions for a user with a mac device.
- Python
brew install python
- Allure
brew install allure
- Clone the repo:
git clone https://github.com/Moukatech/shop_n_deliver_api
- Change directory to the cloned project:
cd shop_n_deliver_api
- Install pipenv to create a virtual enviroment and activate it:
pip install pipenv pipenv shell
- Install the required packages from the
requirements.txt
file:pip install -r requirements.txt
- To run the tests:
pytest
- To be able to view the test results:
allure serve allure_report/
Lewis Mocha - [email protected]