Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.21 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.21 KB

Python-API-Automation-Framework

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

Run the tests

# 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

Acknowledgement

Thanks for Test automation university for the in-depth knowledge and context of API automation and you can find the Course Code in here