Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

0
How to use POSTMAN plugin in API testing

Open 3 Answers 65 Views
0 3
How to use POSTMAN plugin in API testing. what are the benefits of POSTman on SOAP

3 Answers

1
1

What is API?

API stands for Application Programming Interface. It is a software to software interface, not a user interface. With APIs, applications converse with each other with no client learning or intervention. It can be executed by composing capacity brings in the system.

API Workflow Example

versa

What is API Testing?

API testing utilizes programming to send calls to the API and get the yield. It testing regards the segment under test as a black box. The objective of API testing is to confirm right execution and blunder treatment of the part preceding its coordination into an application.

REST API

REST: Representational State Transfer.

  • It’s an arrangement of functions on which the testers performs requests and receive responses. In REST API interactions are made via HTTP protocol.
  • REST also permits communication between computers with each other over a network.
  • For sending and receiving messages, it involves using HTTP methods, and it does not require a strict message definition, unlike Web services.
  • REST messages often accepts the form either in form of XML, or JavaScript Object Notation (JSON).

4 Commonly Used API Methods:-

  1. GET: – It provides read only access to a resource.
  2. POST: – It is used to create or update a new resource.
  3. PUT: – It is used to update or replace an existing resource or create a new resource.
  4. DELETE: – It is used to remove a resource.

Browser Specific Rest Clients List to Test API Manually:-

BrowserTool NameWeb Site
FirefoxRESTClienthttps://addons.mozilla.org/en-US/firefox/addon/restclient/
FirefoxREST Easyhttps://addons.mozilla.org/en-us/firefox/addon/rest-easy/
ChromeAdvanced REST Clienthttp://chromerestclient.appspot.com/
ChromePostmanhttps://www.getpostman.com/
ChromeDHC – REST/HTTP API Clienthttp://restlet.com/products/dhc/




 





 

answered by (692 points)
1Comments
commented by (692 points)
Steps to Test API Manually:-

To use API manually, we can use browser based REST API plugins.

a)Install POSTMAN(Chrome) / REST(Firefox) plugin

b)Enter the API URL

c)Select the REST method

d)Select content-Header

e)Enter Request JSON (POST)

f)Click on send

g)It will return output response
0
0

Before starting with the installation and usage process, let me first give you a brief overview about the API testing

What is API

API (Application Programming Interface) testing is a software testing which involves testing application programming interfaces to determine if they are meeting the expectations of the desired functionality.

In other words, we can also say that an API is a collection of software functions and procedures [which are also known as API calls] that can be executed by other software applications

An API does not have any UI, therefore API testing is performed at the message layer. API testing requires less code and thus provides better and faster test coverage than automated GUI tests.

How API Works

One of the available application to perform API testing is using Postman. To use Postman, you must configure it in your chrome browser using below steps:

Installing POSTMAN

  1. Run Google Chrome and go to More Tools > Extensions
  2. Click Get more extensions
  3. Search POSTMAN by www.getpostman.com
  4. Add to Chrome
  5. Wait for the downloading and installation process to complete
  6. Run Postman

Using Postman

  1. Open Postman
  2. Select an API method
  3. Enter the request URL
  4. Click the Authorization tab and add authorization tokens and credentials as per requirements
  5. Enter headers (if required)
  6. Click Send to make your request
  7. If authentication is successful, the API shows a 200/OK response.
  8. You can also click on Save button to save that API request for future purpose
answered by
edited
1Comments
commented by (192 points)
Removed the promotional content.
0
0

You can install Postman as plugin to your Chrome browser. Software testing companies use postman for API Testing. Postman's most important features is to run automated tests on your request.
You can use POSTMAN plugin for API testing using below mentioned steps.

Writing tests through Postman:
1. First select the API method in the method list (GET,POST,DELETE,PUT,etc.)
2. Enter the API endpoint in request url section.
3. Provide authorization header in 'Headers' section.
4. Enter request body under 'Body' section
5. Now click on 'Send' button to send the request.
6. You can check your response under 'Response' section.

 

answered by (530 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors

...