0% found this document useful (0 votes)
170 views21 pages

Postman Presentation Theory

Postman is an API platform that allows users to test and collaborate on APIs. It started as a side project to simplify API testing and has grown significantly. Postman allows users to organize APIs into workspaces, collections, and environments. Workspaces help organize API work, collections group related API requests, and environments store variables to use across requests. The documentation then demonstrates how to use various HTTP methods like GET, POST, PUT, PATCH, and DELETE in Postman. It also shows how to add authentication, extract values from responses using tests, and generate reports of API tests.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views21 pages

Postman Presentation Theory

Postman is an API platform that allows users to test and collaborate on APIs. It started as a side project to simplify API testing and has grown significantly. Postman allows users to organize APIs into workspaces, collections, and environments. Workspaces help organize API work, collections group related API requests, and environments store variables to use across requests. The documentation then demonstrates how to use various HTTP methods like GET, POST, PUT, PATCH, and DELETE in Postman. It also shows how to add authentication, extract values from responses using tests, and generate reports of API tests.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

01534240090 bugresisrance@gmail.

com
BUG RESISTANCE

API is the
acronym for
Application
Programming
Interface, which is
a software
intermediary that
allows two
applications to talk
to each other.
POSTMAN
BUG RESISTANCE

Postman is an API platform for building and using


APIs. Postman simplifies each step of the API
lifecycle and streamlines collaboration so you can
create better APIs—faster.

Postman started simply as a side project to solve a


specific problem: Abhinav Asthana, Postman's
CEO and co-founder, set out to create a tool that
would simplify the API testing process. As the tool's
usage quickly exploded, Abhinav recruited two of
his former colleagues, Ankit Sobti and Abhijit
Kane, to help him create Postman, Inc. Postman is
now the world's leading API platform, and the three
founders still lead the company to this day.
CREATE WORKSPACE: Postman workspaces help you organize your API work and collaborate across your organization
or across the world. There are three different kinds of Postman workspaces for your different needs: personal workspaces, team workspaces,
and public workspaces.

• From workspace menu, click


on “New Workspace”.

• Give workspace name. Click


on Create workspace button.
You will see new workspace
has been created and
showing on workspace list.

BUG RESISTANCE
CREATE COLLECTION: Postman Collections are a group of saved requests. Every request you send in Postman appears under
the History tab of the sidebar. On a small scale, reusing requests through the history section is convenient. However, as your Postman usage grows, it can be
time-consuming to find a particular request in your history. Instead of scrolling through your history section, you can save all your requests as a group for easier
access.

• Select workspace from list.


• Click on the “Create
Collection” button.
• Give the collection name and
press enter.

BUG RESISTANCE
BUG RESISTANCE
GET : The GET method is used to retrieve information from
the given server using a given URI.
POST : A POST request is used to send data to the server,
GET for example, customer information, file upload etc. using
POST HTML forms.
PUT : PUT is used to send data to a server to create/update
PUT a resource. Replaces all the current representations of the
target resource with the uploaded content.
PATCH
PATCH : PATCH is used to update partial resources. For
instance, when you only need to update one field of the
HEAD resource, Putting a complete resource representation might
be cumbersome and utilizes more bandwidth.
DELETE HEAD : HEAD is almost identical to GET, but without the
response body. HEAD transfers the status line and the header
section only.
DELETE : The DELETE method deletes the specified
resource.
GET Method:

• Select “SQAStudy” button and


Click right side of the mouse.
• Then select ‘Add request’
• Create Name your request.
• Finally enter API

BUG RESISTANCE
POST Method:

• Select “SQAStudy” button and


Click right side of the mouse.
Then select ‘Add request’.
Create Name your request.

• Select ‘POST’ method then enter


API.

• Then select ‘body’, then raw and


finally select JSON.

• Change firstname and lastname


by Replacing your name.

• Finally select Send Button.

BUG RESISTANCE
Environment: A variable is used to store and add parameters in a request, Collection, scripts and so on. An Environment in
Postman comprises a key-value pair. The key in an Environment is known as the Environment variable.

• Select Environment & Create a Name for your environment. Example: we named our environment SQAStudyEnvironment

• Create a variable name which you want to create. Example: we named our variable name BaseUrl
• Enter a initial value, then it will turn into int current value automatically. Example: we enter our initial value https://restful-booker.herokuapp.com
POST Automation method: BUG RESISTANCE

• Select Tests and write code here according to picture.


• Then select send button and see the result in environment.
Variable Automation Process: BUG RESISTANCE

• Write CustomerId Variable in double curly braces.


Put Method step-1:

It isn’t actual Process that’s why it shows Forbidden.

BUG RESISTANCE
Authentication:

It isn’t actual Process that’s why it shows Forbidden.

BUG RESISTANCE
Put Method step-2:

BUG RESISTANCE
Token Automation Process-1:

BUG RESISTANCE
Token Automation Process-2:

BUG RESISTANCE
Patch:

BUG RESISTANCE
Delete:

BUG RESISTANCE
Inner Response Check :

BUG RESISTANCE
Report Generating

First Install Node.js

• Install Command: npm install -g newman

• newman run SQAStudy.postman_collection.json

• newman run SQAStudy.postman_collection.json -eSQAStudyEnvironment.postman_environment.json

BUG RESISTANCE
THANK YOU
THANK YOU

You might also like