POSTMAN Flashcards
What is Postman?
Postman is a collaboration platform for API development. It is a popular API client and it enables you to design, build, share, test, and document APIs.
Using the Postman tool, we can send HTTP/s requests to a service, as well as get their responses. By doing this we can make sure that the service is up and running.
Why Postman?
- Free: It is free to download and use for teams of any size.
- Easy: Just download it and send your first request in minutes.
- APIs Support: You can make any kind of API call (REST, SOAP, or plain HTTP) and easily inspect even the largest responses.
- Extensible: You can customize it for your needs with the Postman API.
- Integration: You can easily integrate test suites into your preferred CI/CD service with Newman (command line collection runner)
- Community & Support: It has a huge community forum
What are the core components of an HTTP request?
- HTTP methods – Set of request methods to perform desired action for a given resource (GET, PUT, POST, DELETE)
- Uniform Resource Identifier (URI) – Describes the resource
- HTTP Version, (example- HTTP v1.1)
- Request Headers, (example- Content-type : application/json, Content-Length : 511)
- Payload – It is basically a Request Body which includes message content.
State The Core Components of an HTTP Response?
- Status/Response Code – These are response codes issued by a server to a client’s request. For example, 404 means Page Not Found, and 200 means Response is OK.
- HTTP Version – describes HTTP version, for example-HTTP v1.1.
- Response Header – Includes information for the HTTP response message. For example, Content-type, Content-length, date, status and server type.
- Response Body – It contains the data that was requested by a client to server.
What API information is exposed in Web Developer tools?
Request headers, Response body, Response cookies
What can we use to get API information from web developer tools into Postman?
Copy as cURL can get API information from web developer tools into Postman.
In which type of encoding does postman accept authorization credentials?
Postman accepts Base64 encoding only. This is provided inbuilt in postman or else you can also refer 3rd party websites to convert the credentials in base64.
=======
We use base64 particularly because it transmits the data into the textual form and sends it in easier form such as HTML form data. Also, we can rely on the same 64 characters in any encoding language that we use.
What is meant by the term environment in postman?
An environment in postman is a set of key value pairs. You can create multiple environments in postman which can be switched quickly with a press of a button. There are 2 types of environment, global and local.
Can global scope variables have duplicate names in postman?
Since global variables are global i.e. without any environment, global variables cannot have duplicate names. Local variables can have the same name but in different environments.
Which one will be preferred in postman- a global variable or a local variable?
In postman, if 2 variables have the same name( one being local, other global) then the higher priority is of the local variable. it will overwrite the global variable.
What is a Postman Collection?
A Postman Collection lets us group individual requests together. Simply it allows us to organize the requests into folders.
What do you mean by postman monitors?
The postman monitor is used for running collections. Collections are run till specified time defined by the user. Postman Monitor requires the user to be logged in. Monitor reports are shared by users over email on a daily/monthly basis.
What do you understand by the term Postman Collection runners?
A postman collection runner is used to perform Data-driven testing. The group of API requests are run in a collection for the multiple iterations with different sets of data.
Can local variables be imported in Postman Monitors
Yes. Postman monitors allow to import local variables but it does not allow to import global variables.
Why is it not preferred to save work in Postman cloud
It is not preferred to save your work in Postman cloud as company’s work is not allowed to be leaked and remain confidential. Security breaches can be experienced if Postman cloud is used as Postman cloud requires sign in. Therefore Postman Cloud is discouraged for saving work and team workspace is highly encouraged.