Running a test collection in Postman is a great way to test your APIs quickly. But an even faster way to run your tests is to run them automatically! In order to automate your Postman tests, we first need to learn how to run them from the command line. Newman is the command-line running tool […]
Author: kristinjackvony
Organizing Your API Tests
One of the things that makes me happy about API testing is how easy it is to organize tests and environment variables. I love having test suites ready at a moment’s notice; to run at the push of a button when regression testing is needed, or to run automatically as part of continuous integration. This […]
Using Variables in Postman
This week, we’ll be talking about the many ways to use variables in Postman. We’ll be using the collection that we created a few weeks ago, so you may want to check that tutorial out before reading on. The first thing to understand about variables in Postman is that they are organized into environments. A […]
Adding Postman Assertions
This week, we’ll be talking about adding assertions to our Postman requests. In last week’s post, we discussed what various API request responses mean, and how to write assertions for them in Postman requests. Now we’ll be adding some more assertions that will test our requests more fully. We will be using the Postman collection […]
Response Codes Explained
If you have ever made a REST request or looked in the developer tools section of a browser, you have likely seen the three-digit response code that is returned with an HTTP request. This week, we’ll be talking about the different types of response codes you might receive when doing API testing, and what those […]
Creating a Postman Collection
This week we’ll be finishing up our discussion of REST request types with an introduction to the DELETE request and how to test it. We will also be looking at how to chain REST tests together in a Postman collection. A DELETE request removes an entire record from a database table. To see a DELETE […]
Testing PATCH Requests
Like PUT requests, PATCH requests modify an existing record. But PATCH requests are much tricker to test! This is because a PUT request modifies an entire record, whereas a PATCH request modifies only one part of the record. There are many different operations that you can do within a PATCH request: you can add, replace, […]
Testing PUT Requests
In last week’s blog post, we discussed how to create and test POST requests. This week, we will tackle testing PUT requests. A PUT request is actually very similar to a POST request; the major difference is that POST requests are intended to create a new record, and PUT requests are intended to replace an […]
Testing POST Requests
Last week, I introduced the concept of the GET request and how to test it. This week we’ll move to POST requests. POST requests are perhaps the most important of the RESTful requests, because they are what adds new records to your application’s database. It’s very important to test your POST requests well, because they […]
Testing GET Requests
Last week I introduced the concept of RESTful API requests, and discussed why it’s crucial that we test them in our applications. This week, we will begin our discussion of RESTful request types with the GET request. This is usually the easiest request to test, because all we are doing is retrieving data from the […]