Tag: REST-API

  • 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 running Postman Newman in a CI/CD pipeline. First, set up 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…

  • Testing With Postman: Checking Schema

    Testing With Postman: Checking Schema

    Postman schema validation is how you make sure that when a field needs a string, it is indeed a string. If you google postman and schema checking you will also find a cool tool called tv4. Do not use this…

  • Testing with Postman: Lodash

    Testing with Postman: Lodash

    Another JavaScript library built into Postman is Lodash, and Postman Lodash makes looping through arrays easy. Looping Arrays with Lodash Sometimes you will want to iterate through an array. Maybe your response itself is an array. Luckily there is an…

  • Testing with Postman: Moment

    Testing with Postman: Moment

    Postman has many built in Javascript libraries. Postman 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…

  • Testing with Postman: Chai Assertions

    Testing with Postman: Chai Assertions

    Postman uses the Chai Assertion Library, so Postman Chai assertions are worth getting familiar with. Common Postman Chai Assertions Before you get into regex, most of your tests will lean on a handful of Postman Chai assertions. Status codes, whether…

  • Testing with Postman: Looping Test

    Testing with Postman: Looping Test

    In this Postman looping test 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…

  • Testing with Postman: Headers

    Testing with Postman: Headers

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

  • Testing with Postman: Reusable Code

    Testing with Postman: Reusable Code

    Last week I talked about storing Postman reusable code in an environmental variable, so this week let’s see how that works. Adding Reusable Code to Your Variable Using the Code in Test More Testing with Postman Links Postman Quick Reference…