Skip to content

Rasujon3/Booking_Rest_API_Newman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Booking_Rest_API_Newman

How to run this project

  • Clone this project
  • Open with Postman / Command Shell
  • Run Command:
newman run Restful-booker.postman_collection.json -e BatchIT.postman_environment.json
  • Run Command for Report:
newman run Restful-booker.postman_collection.json -e BatchIT.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 Auth Token

    Using Form Data with those data

    1. username : admin
    2. password: password123
  2. Create Booking

    Create Data Sets Using the Dynamic Random Variables.

  3. Verify Crated Booking Details

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

    1. First Name

    2. Last Name

    3. totalprice

    4. depositpaid

    5. bookingdates

    6. additionalneeds

  4. Update Booking

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

    1. Only Message

  5. Verify Verify Updated Booking Details

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

    1. First Name

    2. Last Name

    3. totalprice

    4. depositpaid

    5. bookingdates

    6. additionalneeds

  6. Get the Booking's Full Details

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

    1. First Name

    2. Last Name

    3. totalprice

    4. depositpaid

    5. bookingdates

    6. additionalneeds

  7. Delete Specific Booking

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

    1. Only Message

Newman Report Summary:

booking-rest-api-newman