Skip to content

viktorinka/petstore_project_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo project to automate API testing for service Petstore swagger

Petstore swagger

Swagger is a toolkit for API developers from SmartBear Software and the former specification on which the OpenAPI specification is based.

💡 Description

The test project consists of API tests.
A brief list of interesting facts about the project:

  • Fake data generating with Faker library
  • Using Lombok for models for API tests
  • Objects serialization/deserialization for API requests/responses using Jackson
  • Using request/response specifications for API tests
  • Custom Allure listener for beautiful API requests/responses logging
  • Allure TestOps integration
  • Autotests as test documentation
  • Jira integration

🧑‍💻 Tools and a technologies

The autotests in this project are written in Java.
Gradle - is used as a build automation tool.
JUnit5 - to execute tests.
REST Assured - for easy API testing of REST services.
Jenkins - CI/CD for running tests remotely.
Allure Report - for test results visualisation.
Telegram Bot - for test results notifications.
Allure TestOps - as Test Management System.

💻 How to run

Local running tests

gradle clean test

Remote running tests

Running tests in Jenkins

Main page of the build:

Jenkins

Jenkins

After build is completed, in the Builds history opposite the build number will appear the Allure Report icon, clicking on which will open the page with the generated html-report.

Test results report in Allure Report

allure-report1

allure-report1

Integration with Allure TestOps

Main dashboard

dashboard

Test results

testresults

Integration with Jira

jira

Telegram notifications using a bot

After the build is completed, a special bot created in Telegram, automatically processes and sends a test run report message.

back to Contents ⬆

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors