Category: API Testing
Testing with Postman | A Complete Guide to Automation
I decided to do a dump or a one stop shop for testing with postman. You can go through my other post or just read this one. Testing with Postman Basics So to get started with postman you will need…
Testing With Postman: Newman for CI/CD Pipeline
Next is to setup a DevOps job you can go here to learn how to do that. For this section we will focus on the Execute shell and newman. With this I suggest going through Postman’s official documentation found here.…

Testing With Postman: Checking Schema
Schema is something you need to test to make sure when they need a string that it is indeed a string. If you google postman and schema checking you will also find a cool tool called tv4. Do not use…

Testing with Postman: Lodash
Another javascript library built into Postman is Lodash. Looping Arrays with Lodash Sometimes you will want to iterate through an array. Maybe your response itself is an array. Luckily there is an easy for loop that can be used. This…

Testing with Postman: Moment
Postman has many built in Javascript libraries. Moment is one of the more useful ones for getting dates such as today’s date or tomorrow’s. Creating a Date with Moment Moment is another tool build into postman that can be used…

Testing with Postman: Chai Assertions
Postman uses the Chai Assertion Library so familiarize yourself with it. Using Chai Match Assertion You can define a format for your response using Regex and the match assertion. Below is an example of a data format for a mysql…

Testing with Postman: Looping Test
In this blog we use setNextRequest to call to back to the same postman request. This allows us to reuse that request and change different variables for multiple test. Setting Up a Looping Test You can make a request loop…

Testing with Postman: Headers
Sometimes the only thing you need to test is a header. This is when a PDF or something else is returned. Below is how you can test a header. Testing for Correct Headers and PDF Responses Below are test you…

Testing with Postman: Reusable Code
Since I talked about reusable code in your environmental variable last week lets see how that works this week. Adding Reusable Code to Your Variable Using the Code in Test Links Postman Quick Reference GuideChai Assertion LibraryRegex Cheat SheetPostman: The…

Testing with Postman: Variables
Sorry it has been a while but I recently moved job and house, so life has been hectic. Next we will discuss variables. There are a lot of different variables you can use like Collection, Environmental, path, and others. The…
