Giter Club home page Giter Club logo

course-api-framework-python's Introduction

Building an API test automation framework with Python

Purpose

Code for TAU (Test automation university) course on building an API framework with Python. Once ready this would be published at Test automation university, You can also find a series of blogs that I'm writing for this course on my blog https://automationhacks.io/ under Python tag. However, the video courses are going to have much more context and in depth discussions

Setup

Ensure you have pipenv already installed:

# Activate virtualenv
pipenv shell
# Install all dependencies in your virtualenv
pipenv install

How to navigate

Each chapter has its own dedicated branch in /example/<chapter_no>_<topic> format. For e.g. example/01_setup_python_dependencies

You can either use your IDE or terminal to switch to that branch and see the last updated commit.

# Checkout the entire branch
git checkout example/01_setup_python_dependencies
# Checkout to a specific commit, here <sha> can be found using `git log` command
git checkout <sha>

Application under test

This automated test suite covers features of people-api, Please refer the Github repo here.

Note: These tests expect the people-api and covid-tracker API to be up. You would find instructions in the people-api repo

How to run

# 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

# Report results to report portal
python -m pytest -n auto ./tests --reportportal

Discuss?

Feel free to use the Github discussions in this repo to โœ๐Ÿผ your thoughts or even use the disqus comments section on the blogs.

Happy learning!

course-api-framework-python's People

Contributors

automationhacks avatar dependabot[bot] 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.