Friday, August 12, 2016

API Automation : API Testing make easy with Postman

Think About Rest API Automation Then Think About very easy to use tool POSTMAN.

Gr8...

So we are here learn a very basic and very useful things to implement API automation.

Prerequisite.

So postman is chrome App. So you first need to install POSTMAN add-on into chrome browser. So first install  Chrome browser and then install postman.

Click here to install : POSTMAN

Now you are ready to deal with API testing hurrrray....



Lets just take simple go through of postman UI. To test Rest enable client server for happy path running scenario you need to test simple four request /response  for any API.

GET    - To Get some data via API request
POST  - To Insert/Input some data via API request
PUT    - To Update data via API request
DELETE  - To Delete data via API request.


Below images represent where to put request URL and how to make side  by side request.





 (1).  Basically  request editor in UI is section where user can add base URL to check request and response. Also UI has sidebar which maintain collection of request and also maintain history in history tab.



 (2). Enter Base URL request and add parameters with key value using editor if required. Also select request type as GET , POST, PUT etc.



(3) To supplies authentication use header and give auth type and credential.


Now we will understand basic of sending request and response in next post.

For  API Response code refer API Response Code.



You can also check below links to implement API testing in  postman step by step.

API Automation with postman : Understand request and response

API Automation with postman : Understand environment and collections

API Automation with postman : Understand basic writing of test using postman

API Automation with postman : Pass Data file in runner






No comments:

Post a Comment