![]() 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. Tests – These are scripts executed during the request.Usually, pre-request scripts for the setting environment are used to ensure that tests will be run in the correct environment. Pre-request Script – These are scripts that will be executed before the request.Body – This is where one can customize details in a request commonly used in POST request.Headers – You can set headers such as content type JSON depending on the needs of the organization.It may be in the form of a username and password, bearer token, etc. Authorization – In order to access APIs, proper authorization is needed.Params – This is where you will write parameters needed for a request such as key values.Save – If there are changes to a request, clicking save is a must so that new changes will not be lost or overwritten.Request URL – Also known as an endpoint, this is where you will identify the link to where the API will communicate with.In Postman API testing, the most commonly used requests are GET and POST. HTTP Request – Clicking this would display a dropdown list of different requests such as GET, POST, COPY, DELETE, etc.By default, “Untitled Request” would be displayed for requests without titles. Request tab – This displays the title of the request you are working on.A request or folder can also be duplicated as well. Each collection may have subfolders and multiple requests. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |