GithubHelp home page GithubHelp logo

slazarska / petstore_api_test Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 MB

API part of the graduation project for the course QA.GURU (Python)

Python 100.00%
allure-report pytest python request rest-api selene

petstore_api_test's Introduction

Automated API tests for Swagger Petstore

Swagger Petstore is a sample Petstore server.

Content:

Technology Stack:

Python PyCharm Pytest Selene Jenkins Selenoid Allure Report AllureTestOps Jira Telegram

In a nutshell about the project

  • Patterns Page Object
  • Self-documenting code
  • Parsing json files to access test data
  • Remote launch using Jenkins
  • Integration with Allure TestOps
  • Integration with Jira
  • Notifications about test launch and test results via Telegram

Checks are implemented:

  • - Successful/unsuccessful login and logout
  • - Creating and deleting a user
  • - Adding a new pet
  • - Update and deleting the pet

Two tests are marked as xfail due to status code error: image

Remote launch via Jenkins

  1. Click the "Build Now" button. image

Local launch

  1. Clone the repository
  2. Install Poetry (poetry install)
  3. Open the project in PyCharm, add Python Interpreter
  4. Create env files in the project folder according to the sample.
  5. Run the tests in PyCharm or on the command line:
pytest . --alluredir allure-results/

Allure Report is connected to build reports:

image image

If running locally, to check the Allure Report, enter on the command line:

allure serve .\allure-results

Allure TestOps is used as a Test Management system:

image image

Integration Jira with Allure TestOps is configured:

image

Telegram notifications are configured:

image

Thanks ๐Ÿ™
๐Ÿ’š QA.GURU
๐Ÿ’œ QA Sisters

petstore_api_test's People

Contributors

slazarska 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.