Library API
Library API
(or) http://216.10.245.166
1. Method: POST
aisle value should be number only. Isbn should be unique to insert. So provide random isbn which
makes unique
Output Json
"ID": "bcd227"
}
Output Json:
Output the array of Json object books with all below details
{
Isbn : “A2fdsf” (String)
Aisle : 32 (Integer)
Output Json:
"isbn": "a23hd738",
"aisle": "1223"
}
1. Resource :/Library/DeleteBook.php Method : POST
"ID" : "a23h345122332"
}
Output Response:
//
Variables allow you to store and reuse values in your requests and scripts. By storing a value in a
variable, you can reference it throughout your collections, environments, and requests—and if you
need to update the value, you only have to change it in one place. Using variables increases your
ability to work efficiently and minimizes the likelihood of error.
How to use Environments and Variables in Postman?
Variable scopes
Global
Collection
Environment
Data
Local
Scripting in Postman
Postman contains a powerful runtime based on Node.js that allows you to add dynamic behavior to
requests and collections. This allows you to write test suites, build requests that can contain
dynamic parameters, pass data between requests,
The pm object
You will carry out most of the Postman JavaScript API functionality
using “pm” which provides access to request and response data, and
variables.
Rest API’s use HTTP protocol to send the request and receive the response
How to Call Soap Services from Postman- Understand the rules of setting up
Soap Project in Postman
What is Newman?
After Node.js install, Install Newman from npm globally on your system, which allows you to run it
from anywhere.
npm install -g newman
How to run collection from Newman?
$ newman run <CollectionFile>
Generate HTML reports for Test execution results with newman - htmlextra plugin
https://www.npmjs.com/package/newman-reporter-htmlextra
Integrate Postman Automation Scripts to Jenkins CI/CD with the help of Newman commands
Trigger the Postman Automation Scripts from Terminal with the help of Newman CLI
Integrate the Automation Tests with Jenkins for CI/CD Implementation
Prepare neat HTML reports for the Postman API Test Automation results
Understand how to collaborate as a Team by forking the existing Project – Creating branches-
Creating Pull requests – Merging