# Import --> Used to import collection or environment.# Runner --> Automation tests can be executed through the Collection Runner.# Workspace --> You can divide work using workspaces
Sidebar
# History --> Past requests that you have sent will be displayed in History.# This makes it easy to track actions that you have done.# Organize --> your test suite by creating collections.# Each collection may have subfolders and multiple requests.# A request or folder can also be duplicated as well
Request zone
# Request tab --> Display the current request# HTTP method to use# Endpoint (URL)# Save --> If there are changes to a request, clicking save is a must so that new# changes will not be lost or overwritten# Params --> GET or POST...# Authorization --> If you have to use bearer token, username/password etc...# Headers --> To set headers such as content type JSON
GET and POST Requests
# GET Requests# Set your HTTP request to GET.# In the request URL field, input link (including parameters)# Click Send# You will see 200 OK Message
# POST Requests# Set your HTTP request to POST.# Input the link# Switch to the Body tab# Use for example raw and choose the type (JSON ?)# Copy and paste just one user result and change for example the ID to request another user# Click Send.# Status: 201 Created should be displayed# Posted data are showing up in the body
Request Parameterization
# Data Parameterization is one of the most useful features of Postman.# Instead of creating the same requests with different data, you can use variables with parameters.# These data can be from a data file or an environment variable.# Parameterization helps to avoid repetition of the same tests and iterations# can be used for automation testing.# Parameters are created through the use of double curly brackets: {{sample}}.
# Set your HTTP request to GET# {{url}}/users --> No result because the environment is not set# Click the eye# Click edit to set the variable to a global environment which can be used in all collections.# set the name to the url which is your https://domain.com# Go back to your Get request then click send. There should now be results for your request.