Use the Collection Runner in Insomnia

Uses: Insomnia
Related Documentation
TL;DR

Open a collection, click its name and click Run Collection, order and select the requests to send, and click Run.

Prerequisites

Download and install Insomnia.

  1. Create a new collection.
  2. Import the KongAir Flights requests.
  3. Add the following content to the base environment:
    {
     "base_url": "https://api.kong-air.com"
    }
    

Configure the variables

In this example, we want to get a list of KongAir flights and then get more information about a specific flight.

In the Fetch more details about a flight request, we need to replace the flightNumber variable with an actual value. We can either get this value from a response, or click the variable and enter a value (KA0284 for example).

Order and select the requests

Click the name of the collection and click Run Collection. In the Request Order tab, we can drag and drop the requests to reorder them. In this example, we want to send three requests, starting with the Health check endpoint for Kubernetes requests, then Get KongAir planned flights, and finally Fetch more details about a flight.

Once the order is defined, select the three requests to run.

Configure run iterations

To the collection multiple times in a row, update the Iterations field, and add a delay. Let’s run the collection three times with a 100ms delay.

Once everything is configured, click Run. You can see the requests and responses in the Console tab on the right panel.

Collection runner with console tab

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!