Skip to content

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

Notifications You must be signed in to change notification settings

slazarska/petstore_api_test

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages