This is a full Automation Framework for API testing with Python. This includes
- Making HTTP Request
- Assertions
- XML/JSON payload request
- Schema Validation
- Reporting and Parallel Testing
This framework is used on Petstore API Collection.
This is built on a custom Python environment. Please refer here for setup custom python environment
# To Activate virtualenv
pipenv shell
# Install all dependencies in your virtualenv
pipenv install
# Setup report portal on docker
# Update rp_uuid in pytest.ini with project token
docker-compose -f docker-compose.yml -p reportportal up -d
# Launch pipenv
pipenv shell
# Install all packages
pipenv install
# Run tests via pytest (single threaded)
python -m pytest
# Run tests in parallel
python -m pytest -n auto
Thanks for Test automation university for the in-depth knowledge and context of API automation and you can find the Course Code in here