Giter Site home page Giter Site logo

manuperera81 / python-api-automation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 7.45 MB

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

Python 100.00%
api api-testing-framework python pytest report-portal requests test-automation-framework

python-api-automation's Introduction

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

python-api-automation's People

Contributors

manuperera81 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.