Skip to content

This is a full Automation Framework for API testing with Python.

Notifications You must be signed in to change notification settings

manuperera81/Python-API-Automation

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages