Skip to content

This API Test Project contains API collection & Environment data. It also contains test details & detailed report generated by newman.

Notifications You must be signed in to change notification settings

AhmedManan/Shop_API_Test_Report

Repository files navigation

Shop_API_Test_Report

How to run this project

  • Clone this project
  • Open with Postman / Command Shell
  • Run Command:
newman run Shop_API_Manan_Ahmed_Broti.postman_collection.json -e Shop_API_Manan_Ahmed_Broti.postman_environment.json
  • Run Command for Report:
newman run Shop_API_Manan_Ahmed_Broti.postman_collection.json -e Shop_API_Manan_Ahmed_Broti.postman_environment.json -r cli,htmlextra
  • Run Command for Report With Iteration:
newman run Shop_API_Manan_Ahmed_Broti.postman_collection.json -e Shop_API_Manan_Ahmed_Broti.postman_environment.json -n "number of iteration" -r cli,htmlextra

Technology used:

  • Postman
  • Newman

Prerequisite:

  • Jdk
  • Node Js
  • Newman
  • Html Report Library

Newman and Report Installation Process:

  • Newman Install Command:
npm install -g newman
  • Newman Html Report Install Command:
npm install -g newman-reporter-htmlextra

Live API Test Report:

API Documentation:

Newman Report Summary:

Test Summary

Total Number of Test Scripts 78 and a Total of 237 Assertions were done. All of them passed with 0 skipped tests. The number of iterations is 3.

Test case list & Test Features:

  1. Registration

    • ✓ Create data sets using the dynamic random variables.
    • ✓ Generate authentication token
    • ✓ Check status code
    • ✓ Store the dataset in the environment
  2. Login

    In the test I have validated the following field values & checked those features:

    • ✓ Email
    • ✓ Password
    • ✓ Generate token
    • ✓ Check status code
  3. Create A Product

    In the test I have validated the following field values & checked those features:

    • ✓ Create data sets using dynamic random variables
    • ✓ Check status code is 201 [created]
    • ✓ Product price validation
    • ✓ Product quantity validation
    • ✓ Product name validation
    • ✓ Store dataset in the environment
  4. Get all products list

    In the test I have validated the following field values & checked those features:

    • ✓ Check status code
    • ✓ Check the product ID found in the list
    • ✓ Check the product name found in the list
    • ✓ Check the product description found in the list
    • ✓ Check the product category found in the list
    • ✓ Check the product quantity found in the list
    • ✓ Check the product price found in the list
    • ✓ Check the product picture found in the list
  5. Get a product details by ID

    In the test I have validated the following field values & checked those features:

    • ✓ Check status code
    • ✓ Product ID validation
    • ✓ Product name validation
    • ✓ product description validation
    • ✓ Product category validation
    • ✓ Product quantity validation
    • ✓ Product price validation
    • ✓ Product picture validation
  6. Get a product photo

    In the test I have validated the following field values & checked those features:

    • ✓ Check status code
    • ✓ Check response contains a photo or not
    • ✓ Product photo validation
  7. Update product details

    In the test I have validated the following field values & checked those features:

    • ✓ Create data sets using dynamic random variables
    • ✓ Check status code
    • ✓ Product ID validation
    • ✓ Product name validation
    • ✓ product description validation
    • ✓ Product category validation
    • ✓ Product quantity validation
    • ✓ Product price validation
    • ✓ Product picture validation
  8. Create a new order

    In the test I have validated the following field values & checked those features:

    • ✓ Create data sets using dynamic random variables
    • ✓ Check status code is 201 [created]
    • ✓ Product ID validation
    • ✓ Product name validation
    • ✓ Order quantity validation
    • ✓ Buyer ID validation
    • ✓ Buyer name validation
  9. Get all orders list

    In the test I have validated the following field values & checked those features:

    • ✓ Check status code
    • ✓ Check Order ID in the list
    • ✓ Check order price in the list
    • ✓ Check order status in the list
    • ✓ Check order notes in the list
    • ✓ Check buyer ID in the list
    • ✓ Check buyer name in the list
    • ✓ Check buyer mobile no in the list
    • ✓ Check buyer address in the list
    • ✓ Check order billing type in the list
    • ✓ Check order billing status in the list
    • ✓ Check order discount in the list
    • ✓ Check order quantity in the list
    • ✓ Check Product ID in the list
    • ✓ Check seller ID in the list
    • ✓ Check seller name in the list
  10. Get an order details by ID

    In the test I have validated the following field values & checked those features:

    • ✓ Check status code
    • ✓ Check Order ID
    • ✓ Check order price
    • ✓ Check order status
    • ✓ Check order notes
    • ✓ Check buyer ID
    • ✓ Check buyer name
    • ✓ Check buyer mobile no
    • ✓ Check buyer address
    • ✓ Check order billing type
    • ✓ Check order billing status
    • ✓ Check order discount
    • ✓ Check order quantity
    • ✓ Check Product ID
    • ✓ Check seller ID
    • ✓ Check seller name
  11. Update order details by ID

    In the test I have validated the following field values & checked those features:

    • ✓ Check status code
    • ✓ Check order status changed or not
    • ✓ Check order quantity changed or not
  12. Delete a product

    In the test I have validated the following field values & checked those features:

    • ✓ Check status code
  13. Logout

    In the test I have validated the following field values & checked those features:

    • ✓ Check status code is 204 [Not Found]

Conclusion & More

In this API test project, I have tested all the API routes & performed effective tests. To learn more about APIs & HTTP requests you can read my blogs/posts:

About

This API Test Project contains API collection & Environment data. It also contains test details & detailed report generated by newman.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages