Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
4.0k views
by The go-to Tester (473 points)
How to use POSTMAN plugin in API testing. what are the benefits of POSTman on SOAP

3 Answers

1 like 0 dislike
by Expert (748 points)

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/




 





 

by Expert (748 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 like 0 dislike
by
edited

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
by The go-to Tester (181 points)
Removed the promotional content.
0 like 0 dislike
by Expert (570 points)

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.

 


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...