Image CAPTCHA
Enter the characters shown in the image.

You are here

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home/aufr/public_html/modules/book/book.module).

API testing using POSTMAN

What is API testing ?

The API Testing is performed for the application, which has a collection of API that must be tested. API calls verify functionality and expose failure of application.

API testing is strongly connected with Back-end/Database testing, you may have brief knowledge of SQL queries. (That would be an advantage )

 

Why Back-end /Database ?

For API testing, you may not aware about GUI of application. So DB is only the way to cross-check, you are doing right or wrong.

(As we cross-check with database, if you know basic sql queries ( SELECT, UPDATE, ALTER, DELETE ) that would be advantage to use POSTMAN, you can refer http://www.w3schools.com/sql/ it)

 

API Architecture

API calls Collection include mainly three things:

  1. HTTP headers
  2. HTTP Request  (POST,GET,PUT,DELETE )
  3. Status Code/ Response Code

Apart from this your application collection include many things if it required to test in you application.

 

  1. HTTP headers  - HTTP headers are always depended on your application, Mainly two:
    1. Authorization - A token included with requests to identify the requester. This header has to be included in all requests other than the login request.
    2. Content-Type - A standard MIME type describes the format of object data. 
      Content –type in most of the requests and responses will be application/json.
       
  2. HTTP Request  -  There are mainly four request, which we used frequently: DATA =
    1. POST - Create Or Update data
    2. PUT - Update data
    3. GET - Retrieve data
    4. DELETE – Delete data
       
  3. Status Code/Response Code - There are many status/response code, from them we can verify the response.
    1. 200 - OK, The request was successful.
    2. 201 - Created, The request was successful and data was created.
    3. 204 - No Content, The response is empty.
    4. 400 - Bad Request, The request could not be understood or was missing required parameters.
    5. 401 – Unauthorized, Authentication failed or user does not have permissions for the requested operation.
    6. 403 - Forbidden, Access denied.
    7. 404 - Not Found, Data was not found.
    8. 405 - Method Not Allowed, Requested method is not supported for the specified resource.
    9. 500 - Internal Server Error.
    10. 503 - Service Unavailable, The service is temporary unavailable.

We use POSTMAN as API testing tool.

 

How to Install POSTMAN ?

  1. Open a Google chrome
  2. Click on : https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en
  3. Launch app

 

POSTMAN is very easy to use, but API testing is very tricky when your application is complex. Application provide you collection of API calls, you have to follow that collection of API callls for API testing of your application.

When you open POSTMAN, It looks like :

POSTMAN

 

How POSTMAN works:

Select API call (GET/PUT/POST/DELETE)

POSTMAN

 

Set Authorization, Header, Body information accordingly your API call :

Postman

Then, You can click on send to perform your API call.

 

How to set Environment Variable in POSTMAN ?

From Top-Right corner you can set environments variable.

Example : If want to check on local env. , Dev  env. OR QA env. Even you can set accordingly your various projects as well.

It is very easy to set environment variable.

 

Steps to set environment variable.

  1. Click on Manage Environment.
  2. Click on ADD
  3. Write down the Name of Environment.
  4. Fill key & value, You can pass key = variable and value is your host IP address.

Example :  Suppose your URL is something like :

Https://8081:lmdemo/group_1/api…

Here, I am considering it is a QA environment.

Name Of Environment = QA

Key = urlQA and value = 8081:lmdemo/group_1/

 

Whenever, I want to use this environment, I just select QA from top corner.

And here we have to use …

Https://{{urlQA}}/api For any API calls

POSTMAN

 

Add Collection:

You can add Each API call in collection and create a collection.

That will be reusable for application.

Postman - Add Collection

 

You can import collection of others.

You can export your collection, others can use it on their machine as well.

Postman - Collections

 

Example

We can take a simple example from Google API’s.

For more practice you can find API call from here.

https://console.developers.google.com/project/609424378919/apiui/apiview/geocoding_backend/overview

 

Geocoding API (GET call )

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map. The Google Geocoding API provides a direct way to access a geo coder via an HTTP request. Additionally, the service allows you to perform the converse operation (turning coordinates into addresses); this process is known as "reverse geocoding."

 

Pass this in URL ( GET call)

https://maps.googleapis.com/maps/api/geocode/json?address=122+Flinders+St,+Darlinghurst,+NSW,+Australia&sensor=false&key=AIzaSyCm_rpUy1DEjf347bYZIveccGPpqs83lSw

My google api key=AIzaSyCm_rpUy1DEjf347bYZIveccGPpqs83lSw.

It is different for others.

Change it before you try this call.

 

In response:

It shows Latitude and longitude of your passed location.

Postman - body

Postman - body

Normally, We have to pass authorization in header for call ( if it is in your project requirement )

 

GET call – There is no request body for GET call.

PUT/POST/DELETE call - There is no request body for PUT/POST/DELET call.

No worries, You have API collection (API architecture) when you implement for your project. In API architecture, required information for calls would be there, which makes more sense to you.

 

Contact me if you have any question for API testing on: apatel.it.2012@gmail.com

About The Author: 

Ankita Patel, Freelancer with extensive knowledge of Back-end testing using POSTMAN (Manual / Automation).


 

.

API testing

List mode
Table mode
Icons mode

Displaying 1 - 48 of 48

Title Testing Objectives Since Price Quotes Ping
Parasoft SOAtest API testing, Banking Process validation, DataBase testing, Interoperability testing, Stress Testing, Message testing, Performance Analysis, Protocol Testing, Security Testing, SOA testing, Web Monitoring, Web testing, Cross-Browser testing 2,002 Call manufacturer for more details Active
Googletest API testing, Mobile Testing 2,008 Free use Active
Chakram Web testing, API testing 2,014 Free use Active
Postman Pro API testing 2,013 Active
Rapise API testing, Desktop testing, Object Based Testing, Mobile Testing, SOA testing, Web Services, Web testing, Cross-Browser testing 2,009 2016: Single license per $1000 Active
CANTATA API testing, Code Analysis, Code Coverage testing, Coding Standards verfication, Static Code Analysis 2,011 Active
JMeter API testing, Load Capabilities, Stress Testing, Network testing, Performance Analysis, Server testing, SOA testing, Web testing 1,999 Free Use Active
Tessy API testing, Code Analysis, Code Coverage testing, Embedded Software, Test Embedded systems 2,002 Call Manufacturer for details Active
SoapUI API testing, DataBase testing, Load Capabilities, Network testing, Protocol Testing, SOA testing, Web testing 2,006 March 2015 - SOAP-UI : Free Use, March 2015 - SoapUI NG Pro : $499/Year, March 2015 - Floating license - Contact manufacturer for details Active
SoapSonar Security Testing, SOA testing, Web testing, API testing 2,010 July 2015: Personal Edition (Free) Active
RedwoodHQ API testing, Server testing, SOA testing, Web Services, Web testing 2,012 Not Published Active
iMacros API testing, DataBase testing, Desktop testing, Image Comparison, Server testing, SOA testing, Web testing, Cross-Browser testing 2,001 2015: Enterprise Edition - 995 USD per license, 2015: Standart Edition - 495 USD per license, 2015: WebBrowser Component for .NET - 2,995.00 USD per license Active
HttpMaster SOA testing, Web Services, Web testing, API testing 2,003 Active
Seatest API testing 2,010 Free Use Active
JUnit API testing, Code Analysis, Java testing, Plugin testing 2,009 Free Use Active
Test Advisor Coding Standards verfication, Code Tracability, API testing 2,007 Active
Nunit API testing, Code Analysis, Embedded Software 2,002 Free Use Active
Runscope API testing, Performance Analysis, SOA testing, Web Services, Web Monitoring, Web testing 2,013 Active
Robolectric API testing, Mobile Testing 2,010 Free use Active
xUnit.net API testing, Interoperability testing 2,009 Free Use Active
AdaControl API testing, Code Analysis, Static Code Analysis 2,011 Free Use Active
XMLUnit API testing, Web testing 2,001 Free use Active
CloudQA API testing, Desktop testing, Web testing, Cross-Browser testing 2,016 Active
Codeception API testing, SOA testing, Web testing 2,012 Free Use Active
MTAS API testing, Desktop testing, Mobile Testing, Network testing, Web testing, Cross-Browser testing 2,011 Active
SCADE Suite API testing 1,999 Active
RedLine13 Web testing, Web Monitoring, Load Capabilities, API testing 2,013 Active
JTest Metrics Analysis, Web testing, SOA testing, Data Flow Analysis, Code Analysis, Static Code Analysis, Coding Standards verfication, Code Tracability, Code Review, Code Coverage testing, Java testing, API testing 1,996 Active
Visual Studio Unit Testing Framework API testing 2,005 Free use Active
Jelly API testing, SOA testing, Web testing 2,010 Free use Active
Java Unit Test API testing, Code Coverage testing, Code Tracability, Java testing 2,003 October 2014 - Desktop License - $299, October 2014 - Floating License - $399, October 2014 - Annual Maintenance - $99 Active
JSFUnit API testing, Web testing 2,009 Free Use 2011
Gtest-gbar API testing 2,011 Free Use Active
cfix API testing 2,008 Free Use Active
dotTEST API testing, Code Analysis, Code Tracability, Coding Standards verfication, Static Code Analysis, Plugin testing 2,006 Call Manufacturer for details Active
Assertible API testing, Web Monitoring, Web testing 2,016 Not Published Active
Unity API testing, Code Analysis, Static Code Analysis, Embedded Software 2,008 Free use Active
Ahven API testing 2,008 Free to use Active
CTESK API testing 2,010 Free use 2014
Visual Assert API testing 2,009 Free Use Active
Tellurium API testing 2,010 August 2014 : Individual License (1 user/1project) : $15/month, August 2014 : Professional License (5 users/10 projects) : $75/month, August 2014 : Enterprise License (20 users/20 projects) : $250/month Active
Check API testing 2,001 Free Use Active
Commercial Tools
Isolator++ API testing, Code Analysis, Static Code Analysis 2,004 2015: Basic - Free, 2015: Sharepoint - $ 21 /mo, 2015: Essential - $ 34 /mo Active
xTests API testing 1,999 Free Use 2009
Scirocco Mobile Testing, API testing 2,006 Free use 2011
QUnit API testing 2,008 Free use Active
LoadFocus API testing, Load Capabilities, Performance Analysis, Website Speed Testing, Web Monitoring 2,013 Not Published Active

MANUFACTURERS Wallboard

Testing tool manufacturers world-wide list
10Levels ABID CONSULTING AccelQ Accord Software ActiMind AdaCore
AdaLog AgileLoad AgileWay Agitar Algorismi ALL4TEC
Andreas Kleffel Android Apache Apica Apollo Systems AppAssist.mobi
Applitools AppPerfect Appsee ApTest Assertible Assure
Atlassian AutoIt Consulti .. Automation Anyw .. Automation Cons .. Axosoft Aztaz Software
Backtrace I/O Badboy BlazeMeter Borvid BrowserStack BSQUARE
BStriker Intern .. CA Technologies Canonical Canoo Engineeri .. Catch Software CelestialTeapot
Chris Mallett Cleanscape ClicTest CloudQA Codeborne CodeCentrix
CodePlex projec .. Codoid Cogitek Compuware Configure IT Conflair
ConSol Core Services Coronys Ltd Countersoft CresTech Softwa .. CrossBrowserTes ..
Crosscheck Netw .. Crowdsourced Te .. Cucumber Ltd Cyara Cygnet Infotech DareBoost
Databene Datamatics Glob .. DevExpress DTM soft Dynatrace LLC EasyQA
Eclipse EkaTechserv Elvior Emmanuel Jorge Empirix EPAM Systems
Equafy Esterel Technol .. eXept Software .. Experitest Finaris Froglogic
FrontEndART Ltd GeneXus GitHub project gnoso Google Code Pro .. GrammaTech
Gurock Software HelpSystems HENIX Hewlett Packard .. Hexawise High-Tech Bridg ..
Hiptest Hitex IBM Rational imbus Shanghai Impetus Inflectra
informUp InTENSO - IT Ex .. Ipswitch Jamo Solutions Janova JAR Technologie ..
JBoss Developer jClarity Jellly.io JetBrains Jively jQuery foundati ..
JS Foundation Jspresso Kanoah KMS Technology Kualitee LDRA Limited
Litmus LoadFocus Loadster Perfor .. MarathonITE Marketcircle Marketcircle
Maveryx Meliora Ltd Micro Focus Sof .. Microsoft Mobile Labs Mobile1st
Mockaroo, LLC Monkop Mozila MSys Technologi .. Navicat NeoTys
Neowise Softwar .. NetCart NORIZZK.COM Novosync Mobili .. NRG Global NTT Resonant
OC Systems Odin Technology OpCord Oracle Orcanos Original Softwa ..
OW2 PANAYA Parasoft PassMark Patterson Consu .. Perfecto Mobile
Pivotal, Inc. Plutora Postman (API To .. PractiTest PrimaTest Process One
Programming Res .. Psoda PureLoad PushToTest Python Q-Assurance
QA Systems QACube QASymphony QAWorks QMetry Quali
Qualitia Softwa .. Quality First S .. Quotium RadView Softwar .. Ranorex RedLine13
Reflective Solu .. ReQtest RevDeBug Robotium Tech Rogue Wave Soft .. Rommana Softwar ..
RTTS ruby-doc.org Runscope Sandklef GNU La .. Sauce Labs Seapine Softwar ..
SeleniumHQ Sencha Sensiple Siemens PLM Sof .. SmartBear Softw .. SmarteSoft
SOASTA SoftLogica Softomotive Softsmith Solution-Soft SonarSource
Sourceforge Spirent Technol .. SQS Software Qu .. Square Stimulus Techno .. Swifting AB
Synopsys T-komp T-Plan TechExcel TechTalk Telerik By Prog ..
Tellurium Test Collab Test Goat Test Recon TestCaseLab testCloud.de Gm ..
TestCraft Techn .. Testenium Testim.io TestingBot TestLodge Testmunk
Testomato TestOptimal TestPlant TestPro Testsigma Techn .. Testuff
The Core Bankin .. The MathWorks The Open Group thePHP.cc Thoughtbot Thoughtworks
Tigris.org Time Simulator Top-Q Trace Technolog .. TrendIC TRICENTIS
Tritusa Pty Ltd TWD Solutions P .. TypeMock Tyto Software Ubertesters UniTESK
Universal Test .. Usetrace Ltd Utrecht Univers .. Validata Group Vanamco AG Vector Software
Veracode Verifaya Corpor .. Verit VersionOne Viewlike.us Vornex Inc.
Watir.com WcfStorm Soluti .. We Are Mammoth Web Performance .. Wintask Wireshark Found ..
Worksoft Xceptance XK72 Xpand IT XQual ZAPTEST
Zeenyx Software .. Zephyr Zeta Software zutubi pty

Theme by Danetsoft and Danang Probo Sayekti