How can I run an individual request with Postman Collection Runner?
Asked Answered
H

3

6

I want to use the Postman Collection Runner to submit requests to an XML API based on data imported from a CSV spreadsheet. However, rather than running an entire collection, I want to only run an individual request from a folder.

So for example: I have a folder of POST requests for manipulating employee data.

POST requests for employee data

I specifically want to test sending Load requests to my API. However, the Collection Runner only lets me select and run the entire Personality folder.

How can I test an individual request using the Postman Collection Runner?

Hali answered 26/12, 2017 at 16:2 Comment(0)
T
3

You could also simply create a subfolder for the single request you want to iterate over. Runner can zoom in on that folder.

Transmitter answered 27/12, 2017 at 11:41 Comment(1)
Agreed. So we have presented several different ways it can be done.Mehitable
M
1

If you want to run the first request you can use the setNextRequest(null) function within the test tab. As long as the request that you only want to run is first in the collection, it will be the only one that is picked up in the collection runner. More details can be found here.

Mehitable answered 26/12, 2017 at 19:16 Comment(6)
The request I want to run isn’t first in the collection unfortunately.Hali
Create a collection with a single request or move the collection up to be the first one? Both will work for what you’re asking, just depends what you do and don’t want to change.Mehitable
Or in the first request comment out any tests and use the setNextRequest("Load") so it goes to that request and still keep the null option in that test to stop the runnerMehitable
@StevenVascellaro Do any of the proposed solutions answer your question?Mehitable
They are decent workarounds, but they weren’t exactly what I was looking for unfortunately.Hali
Share and update, if you find the solution you’re after.Mehitable
A
0

Select the collections tab on the left hand side. Tap on the name of the collection to expand all the requests in the collection. Select the request you want to run. In the right hand window, the request will show up. Hit the send button to run the request.

Of course this is not directly from the collection runner itself.

Analiese answered 28/1, 2019 at 14:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.