Skip to content

I develop this API Test Automation by using POSTMAN and Newman with Java script and Chai BDD framework

Notifications You must be signed in to change notification settings

mamuneee78/API_Test_Automation_Project

Repository files navigation

API Test Automation Project

How to run this project

  • Open with Postman / Command Shell
  • Run Command:
newman run API_Test_Automation.postman_collection.json -e StudentDetails.postman_environment.json 
  • Run Command for Report:
newman run API_Test_Automation.postman_collection.json -e API_Test_Automation.postman_environment.json -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-html
  • Newman htmlextra Report Install Command:
npm install -g newman-reporter-htmlextra

API Documentation:

Test case list:

  1. Token Generate

    In this request need to generate token as per documentaion and need to validate the following field values:

    1. Token data

    2. Status code validation

    3. Response Time Validation

  2. Create(Booking)

    Create Data Sets Using the Dynamic Random Variables In this test case need to validate the following field

    1. Response time validation

    2. Status Code validation

  3. FetchBookingData

    In the test case you need to validate the following field values:

    1. First Name

    2. Last Name

    3. totalprice

    4. depositpaid

    5. Content-Type value test

    6. checkin

    7. checkout

    8. Response Time validation

    9. Connection header present

    10. Content-Type header present

  4. UpdateBookingInfo

    In the test case need to validate the following field values:

    1. checkin

    2. checkout

    3. totalprice

    4. Status code validation

    5. Status code validation

  5. FetchUpdatedData

    In the test case you need to validate the following field values:

    1. First Name

    2. Last Name

    3. totalprice

    4. depositpaid

    5. Content-Type value test

    6. checkin

    7. checkout

    8. Response Time validation

    9. Connection header present

    10. Content-Type header present

  6. Delete Booking Details

    In the test case you need to validate the following field values:

    1. Only Message

Newman Report Summary:

Report Dashboard

Newman Report Summary

API Requests

Newman Report Summary

Request Details

Newman Report Summary

Failure Reason

Newman Report Summary

Thank You

About

I develop this API Test Automation by using POSTMAN and Newman with Java script and Chai BDD framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published