Testing with postman tutorial12/29/2023 ![]() Whenever, I want to use this environment, I just select QA from top corner. Key = urlQA and value = 8081:lmdemo/group_1/ Here, I am considering it is a QA environment. Fill key & value, You can pass key = variable and value is your host IP address.Įxample : Suppose your URL is something like :.It is very easy to set environment variable. Even you can set accordingly your various projects as well. How to set Environment Variable in POSTMAN ?įrom Top-Right corner you can set environments variable.Įxample : If want to check on local env. Then, You can click on send to perform your API call. Set Authorization, Header, Body information accordingly your API call : Application provide you collection of API calls, you have to follow that collection of API callls for API testing of your application. POSTMAN is very easy to use, but API testing is very tricky when your application is complex. 503 - Service Unavailable, The service is temporary unavailable.405 - Method Not Allowed, Requested method is not supported for the specified resource. ![]() 401 – Unauthorized, Authentication failed or user does not have permissions for the requested operation.400 - Bad Request, The request could not be understood or was missing required parameters.204 - No Content, The response is empty.201 - Created, The request was successful and data was created.Status Code/Response Code - There are many status/response code, from them we can verify the response.HTTP Request - There are mainly four request, which we used frequently: DATA =.Content-Type - A standard MIME type describes the format of object data.Ĭontent –type in most of the requests and responses will be application/json.This header has to be included in all requests other than the login request. Authorization - A token included with requests to identify the requester.HTTP headers - HTTP headers are always depended on your application, Mainly two:.(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 it)ĪPI calls Collection include mainly three things:Īpart from this your application collection include many things if it required to test in you application. So DB is only the way to cross-check, you are doing right or wrong. (That would be an advantage )įor API testing, you may not aware about GUI of application. API calls verify functionality and expose failure of application.ĪPI testing is strongly connected with Back-end/Database testing, you may have brief knowledge of SQL queries. The API Testing is performed for the application, which has a collection of API that must be tested.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |