Skip to content

• Different types of test scripts are created and executed for validating test cases through GET, POST, PUT, PATCH, and DELETE requests for the Booking Rest API. • CSV Dataset was used for data-driven testing. • An API Test Report was generated through Newman CLI, which describes the details of the test.

shafinrahman912/Booking_REST_API_POSTMAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Booking_REST_API_POSTMAN

How to run this project

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

API Documentation:

Test case list:

  1. Create Booking

    Create Data Sets Using the Dynamic Random Variables and validation of status code in the test case.

    1. Validating Status Code

  2. Verify Created Booking Details

    Validation of the following field values in the test case :

    1. Validating Status Code

    2. Validating First Name

    3. Validating Last Name

    4. Validating Total Price

    5. Validating Deposit Paid

    6. Validating Checkin Date

    7. Validating Checkout Date

    8. Validating Additional Needs

  3. Create Authentication Token

    Create Authentication Token Data Using User Name and User Password

  4. Update Booking

    Set Pregenerated Authentication Token in Update Request Headers Using the Dynamic Variables.

    Update Data Sets Using the Dynamic Random Variables and validation of status code in the test case.

    1. Validating Status Code

  5. Verify Updated Booking

    Validation of the following field values in the test case :

    1. Validating Status Code

    2. Validating First Name

    3. Validating Last Name

    4. Validating Total Price

    5. Validating Deposit Paid

    6. Validating Checkin Date

    7. Validating Checkout Date

    8. Validating Additional Needs

  6. Delete Specific Booking

    Validation of status code in the test case :

    1. Validating Status Code

Newman Report Summary:

Newman Report Summary

Newman Report Summary

Newman Report Summary

About

• Different types of test scripts are created and executed for validating test cases through GET, POST, PUT, PATCH, and DELETE requests for the Booking Rest API. • CSV Dataset was used for data-driven testing. • An API Test Report was generated through Newman CLI, which describes the details of the test.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages