Skip to content

rahama21/APITest

Repository files navigation

APITest

Website link : https://restful-booker.herokuapp.com

Requirements

JDK 8 Install (Link: https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html)

Node JS Install (Link: https://nodejs.org/en/)

Environment Variable Setup

Postman (Link: https://www.postman.com/)

Method:

    1. Post

    2. Get
    
    3. Put

    4. Delete

API : 1. https://restful-booker.herokuapp.com/booking/

    2. https://restful-booker.herokuapp.com/booking/id

    3.  https://restful-booker.herokuapp.com/auth

    4. https://restful-booker.herokuapp.com/booking/1

Newman

Install Command: npm install -g newman

Run Command:

newman run “Path/CollectionName.json” -e Path/EnvironmentName.json

newman run “Collection Link” -e “Path”/EnvironmentName.json

Report:

Install: npm install -g newman-reporter-html

npm install -g newman-reporter-htmlextra

Run Command:

newman run “Collection Link” -e EnvironmentName.json -r cli,html

newman run “Collection Link” -e EnvironmentName.json -r cli,htmlextra

##Screenshots

Screenshot 2022-11-08 122759

Screenshot 2022-11-08 122852

Screenshot 2022-11-08 123132

Screenshot 2022-11-08 123215

#Html report

Screenshot 2022-11-08 221047

Screenshot 2022-11-08 221123

Screenshot 2022-11-08 221158

Screenshot 2022-11-08 221246

<img

"Screenshot 2022-11-08 221339" src="https://user-images.githubusercontent.com/32101980/200618422-b1aba5ed-2140-4169-8443-f4d7b79eb5da.png">

Screenshot 2022-11-08 221454