Postman Scrips¶
How to download and use Postman¶
- Go to https://www.getpostman.com/downloads/ and choose your desired platform among Mac,Windows or Linux.
- To import postman scripts https://www.getpostman.com/downloads/
- HTTP Request - Clicking this would display a dropdown list of different requests such as GET, POST, COPY, DELETE, etc. In testing, the most commonly used requests are GET and POST.
- Params - This is where you will write parameters needed for a request such as key values.
- Headers - You can set headers such as content type JSON depending on the needs of the organization.
- Body - This is where one can customize details in a request commonly used in POST request.
- Tests - These are scripts executed during the request. It is important to have tests as it sets up checkpoints to verify if response status is ok, retrieved data is as expected and other tests
Working with GET Requests
- Set your HTTP request to GET.
- In the request URL field, input link
- Click Send
- You will see 200 OK Message
Working with POST Requests
- Set your HTTP request to POST.
- Input the same link in request url:
- switch to the Body tab
- In Body, click raw and select JSON
Pre-filled sample post man scripts can be downloaded here
- Open the Post man
- Click the import button
- Select the import file or Drag and drop the file in the box
Postman Sample