Skip to content

shinkai-tester/shop-api-tests-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated REST API tests for Shop

https://testbase.atlassian.net/wiki/spaces/SHOP/overview?homepageId=1411056054

Shop main

Shop main

Content

🛠️ Stack of technologies

IntelliJ IDEA Logo GitHub Logo Java Logo REST-assured Logo JUnit5 Logo Gradle Logo Jenkins Logo Allure Report Logo Allure TestOps Logo Jira Logo Telegram Logo

📄 Description

The test project consists of REST API tests and includes the following interesting features:

  • ✔️ Parameterized tests: Allows testing of various scenarios by providing different input data
  • ✔️ Object serialization/deserialization: Handles API requests and responses using Jackson for seamless data transformation
  • ✔️ Request specification: Uses request specifications to simplify and centralize API test configuration
  • ✔️ Fake data generation: Utilizes the Faker library for generating random test data
  • ✔️ Custom Allure listener: Provides beautiful logging of API requests and responses
  • ✔️ Allure TestOps integration: Integrates with Allure TestOps for comprehensive test reporting and analytics
  • ✔️ Jira integration: Seamlessly tracks issues and integrates with Jira for efficient collaboration
  • ✔️ Parallel execution: Executes tests in parallel for faster feedback and reduced execution time

📋 List of REST API tests

Create item

  • Create item in Shop with all fields
  • Create item in Shop with required fields
  • Unsuccessful item creation: missing required parameter
  • Create item with photo with width more than 500px

Delete item

  • Delete item in Shop
  • Delete item with bad id

🔌 Running tests from the terminal

To run tests from the terminal using Gradle, you can use the following command:

gradle clean test

Running tests in Jenkins

Main page of the build:

Jenkins

Job configuration:

Jenkins Video demonstrating configuring a job

Test results report in Allure Report

From Jenkins it is possible to switch to reports generated by Allure.

allure5
allure5

Integration with Allure TestOps

allure5
allure5

Integration with Jira

jira-project

Telegram notifications using a bot

After passing all the tests, an automatic report is sent to the Telegram messenger.

Screenshot of Telegram Notifications

Back to content

About

Automated REST API tests for Shop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published