<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Muhammad Salman</title>
    <description>The latest articles on DEV Community by Muhammad Salman (@msalman-sqa).</description>
    <link>https://dev.to/msalman-sqa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4157127%2F8e24ffd0-bf66-4dca-9de2-cec4a6fb38e1.jpg</url>
      <title>DEV Community: Muhammad Salman</title>
      <link>https://dev.to/msalman-sqa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/msalman-sqa"/>
    <language>en</language>
    <item>
      <title>API Testing with Postman: A Practical Checklist for Beginners.</title>
      <dc:creator>Muhammad Salman</dc:creator>
      <pubDate>Fri, 02 Oct 2026 11:31:24 +0000</pubDate>
      <link>https://dev.to/msalman-sqa/api-testing-with-postman-a-practical-checklist-for-beginners-lji</link>
      <guid>https://dev.to/msalman-sqa/api-testing-with-postman-a-practical-checklist-for-beginners-lji</guid>
      <description>&lt;p&gt;"A simple, practical checklist for testing REST APIs with Postman, from status codes to response validation and negative testing."&lt;/p&gt;

&lt;h2&gt;
  
  
  tags: testing, qa, api, beginners
&lt;/h2&gt;

&lt;p&gt;When I started in QA, I thought API testing meant sending a request and checking that I got a &lt;code&gt;200 OK&lt;/code&gt;. That catches very little. A response can return 200 and still contain the wrong data, a missing field or a broken format.&lt;/p&gt;

&lt;p&gt;Here is the checklist I use when testing a REST API with Postman.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Check the status code
&lt;/h2&gt;

&lt;p&gt;Every request should return the status code the documentation promises.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;200&lt;/code&gt; for a successful read&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;201&lt;/code&gt; for a created resource&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;400&lt;/code&gt; for a bad request&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;401&lt;/code&gt; / &lt;code&gt;403&lt;/code&gt; for authentication and permission problems&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;404&lt;/code&gt; for a missing resource&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Postman, you can automate this in the &lt;strong&gt;Tests&lt;/strong&gt; tab:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Status code is 200&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Validate the response body
&lt;/h2&gt;

&lt;p&gt;A correct status code is not enough. Check that the fields exist and have the right values and types.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Response has the expected fields&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;have&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;property&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;id&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;be&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;a&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;string&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Check response time
&lt;/h2&gt;

&lt;p&gt;Slow APIs make slow apps. Set a sensible limit and test against it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Response time is under 800ms&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;pm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;responseTime&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;to&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;be&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;below&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;800&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Test the negative cases
&lt;/h2&gt;

&lt;p&gt;This is where many bugs hide. Try:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing required fields&lt;/li&gt;
&lt;li&gt;Wrong data types (a string where a number is expected)&lt;/li&gt;
&lt;li&gt;Empty values, very long values and special characters&lt;/li&gt;
&lt;li&gt;An invalid or expired token&lt;/li&gt;
&lt;li&gt;A resource ID that does not exist&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A good API returns a clear error message and the right status code instead of crashing.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Test authentication and permissions
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Call the endpoint without a token&lt;/li&gt;
&lt;li&gt;Use a token that belongs to a different user&lt;/li&gt;
&lt;li&gt;Try to access data you should not be allowed to see&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Many serious security issues are simple authorization gaps like these.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Use environments and variables
&lt;/h2&gt;

&lt;p&gt;Do not hard-code URLs and tokens in every request. Use Postman &lt;strong&gt;environments&lt;/strong&gt; (for example &lt;code&gt;dev&lt;/code&gt;, &lt;code&gt;staging&lt;/code&gt;) with variables like &lt;code&gt;{{base_url}}&lt;/code&gt; and &lt;code&gt;{{token}}&lt;/code&gt;. Your collection then works on any environment without editing.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Run the collection automatically
&lt;/h2&gt;

&lt;p&gt;Once your tests are ready, run the whole collection with the &lt;strong&gt;Collection Runner&lt;/strong&gt;, or from the command line with Newman:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;newman run my-collection.json &lt;span class="nt"&gt;-e&lt;/span&gt; staging.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes it easy to plug API checks into a CI pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Correct status codes&lt;/li&gt;
&lt;li&gt;[ ] Response body fields and types&lt;/li&gt;
&lt;li&gt;[ ] Response time&lt;/li&gt;
&lt;li&gt;[ ] Negative and edge cases&lt;/li&gt;
&lt;li&gt;[ ] Authentication and permissions&lt;/li&gt;
&lt;li&gt;[ ] Environments and variables&lt;/li&gt;
&lt;li&gt;[ ] Automated runs with Newman&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Good API testing is about thinking beyond the happy path. Start with this checklist, add your own cases as you learn the product, and your bug reports will get sharper.&lt;/p&gt;

&lt;p&gt;If you have a favorite API testing tip, share it in the comments.&lt;/p&gt;




&lt;p&gt;I'm Muhammad Salman, a Software Quality Assurance Engineer working on manual, API, mobile and automation testing. You can see my work at msalman-sqa.vercel.app.&lt;strong&gt;(&lt;a href="https://msalman-sqa.vercel.app" rel="noopener noreferrer"&gt;https://msalman-sqa.vercel.app&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>beginners</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
