API Testing with POSTMAN

Ali KAYA
3 min readJan 3, 2022

Hello everyone, Happy New Year y’all. Wishing to healthy, beneficial, happy year for our world. New year new beginning. Here is new testing post. I’ma explain Postman attributes today. Have fun.

API, means application programming interface, is a layer between database and front-end(clients). For instance Medium has many stories which open whenever you want to read. Medium has big database to keep for that stories. When you click a story head you can see contain easily. Nobody want to you write code to get stories from Medium database. Since this website has interface and when you send any request, server will response you what you demand in seconds. Unless that layer build, search something on websites wouldn’t be possible. Well, what about POSTMAN? Postman provides variety of views and controls for managing your API projects.”

On applications, interface type is URL, we can request URL via HTTP(Hypertext Transfer Protocol) methods. After user have request from front-end, server response various types such as 200,404,501 status according to request result. Postman help contact API and make sure that the process of sending and receiving data can much easier. Without interface to the server would be much harder to communicate. Among almost million users, you had to search your ID and password. Later, among irrelevant thousands stories you had to find your interest topics. Moreover, this company would need thousands of employees to serve the users . Nobody prefer it. So we have interfaces. Thanks to Postman you can send a request to your database. You can get information what you want about your data. Or you can update,create and delete data.

Postman Common Attributes;

  1. Request; Your requests can include multiple details determining the data Postman will send to the API you are working with. Enter a URL and choose a method, then optionally specify a variety of other details. You can create a new request from the Postman home screen, by using New > HTTP Request, or by selecting the + button to open a new tab. You can select your method such as GET, PUT, POST, PATCH, DELETE etc. For Restful API everyone use JSON language. Under the Body section you can select JSON. According to Postman response you can check your datas. Please Do NOT forget click to SAVE button after all request to reuse them later.
  2. Environments; Postman environments allow us to effectively store and reuse values ​​in our requests and scripts. Three way to create Environment Variables;
    2.a) On the up-right side you will see Environment section, you can click and Add your environments to use on your collection.
    2.b) On the collection side you will see Three Dots > Edit > Variables.
    2.c) From Pre-Request Script section select Get On Environment Variable from right side Postman advises.
  3. Monitoring your API; “Postman Monitors give you continuous visibility into the health and performance of your APIs. Setting up a new monitor is fast and flexible. Keep watch on a single endpoint, run API tests using your existing test scripts, or chain together a sequence of requests to validate critical API flows. Once the monitor is running you’ll get alerted to any failures, so you can quickly identify and address issues before your API’s consumers are affected.” To gain continuously reports from your APIs monitoring service is useful as well as you can determine testing periods.

Appreciated to spend your time with me. I have tried to share my experiences about Postman and API testing. I hope it can be useful post for y’all.

SOURCE;

https://learning.postman.com/docs/getting-started/introduction/

--

--

Ali KAYA

Assistant Software QA at Nesine.com. Quality Assurance, researcher, debater. Love the world, love the animals.