Tuesday, November 27, 2018

Perform Load testing for Web API /Restful service in Postman

This blog demonstrates how to perform load testing of WEB API (restful service) by using postman tool.

Steps:
  1.  Create a Collection.
  2. Add Web API HTTP Request.
  3. Run ‘Runner’ to perform load testing.

Create a collections – which contains list of HTTP request

Ø  Click on New Button icon under Collections Tabs


 Postman Create a Collection


Ø  “Create a New Collection” screen will be displayed

 Postman Create a Collection


Add Web API HTTP Request:

Ø  Click on New Button:

Add Web API HTTP Request


Ø  Click on  “Create New -> Request (Under Building Block)” icon


Add Web API HTTP Request:

Ø  Save HTTP Request to ‘Load Restful Web APIs’

·        Give HTTP Request Name eg. HTTP Get Request

Add Web API HTTP Request:



·        Enter Web API URL and required information to submit request


Enter Web API URL


Run ‘Runner’ to perform load testing:

Ø  Click on “Runner” Button

Run ‘Runner’ to perform load testing:

Ø  Select Collection and provide value for below fields:
·        Environment
·        Iteration
·        Delay    

Collection Runner


Ø  Click Start RUN & after successfully RUN, will be display Load balance test result:

Load balance test result


No comments:

SQL Server - Identify unused indexes

 In this blog, we learn about the index usage information (SYS.DM_DB_INDEX_USAGE_STATS) and analyze the index usage data (USER_SEEKS, USER_S...