Questions tagged [postman-collection-runner]

Use this tag for issues with Postman Collection Runner; use the [postman] tag for general Postman issues.

You can use Collection Runner to run all the requests of a Postman Collection in one go.

Postman Collection Runner

Reference:
https://learning.postman.com/docs/running-collections/intro-to-collection-runs/

471 questions
70
votes
6 answers

Postman - How to move collections between Workspaces?

I have multiple collections on the same Workspace on Postman. Unfortunately things are starting to get messy, to many Collections from different projects on the same place. How can I move some Collections/APIs to new Workspaces?
Lucas Fabre
  • 1,806
  • 2
  • 11
  • 25
41
votes
21 answers

Postman : socket hang up

I just started using Postman. I had this error "Error: socket hang up" when I was executing a collection runner. I've read a few post regarding socket hang up and it mention about sending a request and there's no response from the server side and…
kenn_ross
  • 411
  • 1
  • 4
  • 5
25
votes
6 answers

How can I view responses in Postman Collection Runner?

I am using the Postman Collection Runner to run the same request multiple times using iterations. My tests work as expected, but I'm not able to see the individual responses for each request. Is it possible to view the responses for requests in the…
thedev
  • 2,816
  • 8
  • 34
  • 47
22
votes
5 answers

Postman - how to loop request until I get a specific response?

I'm testing API with Postman and I have a problem: My request goes to sort of middleware, so either I receive a full 1000+ line JSON, or I receive PENDING status and empty array of results: { "meta": { "status": "PENDING", …
16
votes
3 answers

Running a request in Postman multiple times with different data only runs once

I am new to Postman and running into a recurrent issue that I can’t figure out. I am trying to run the same request multiple times using an array of data established on the Pre-request script, however, when I go to the runner the request is only…
16
votes
6 answers

How to export/download Response Body into an external file from Postman Collection Runner Results?

I am working on a project where I have to hit a web service multiple times with different values of a variable For example, http://mywebservice.com?variable1={{value}} and different values are passed using Postman collection runner. I want to…
Dinesh Singh
  • 171
  • 1
  • 1
  • 7
13
votes
3 answers

How to increase Variable value based on the iteration being run in Postman

I have an API request that I need to run in Postman-Collection-Runner thru multiple iterations. The API request uses Variable. How can I make this variable to automatically increase with each iteration (or maybe set the iteration value as another…
KVN
  • 863
  • 1
  • 17
  • 35
11
votes
3 answers

Postman: How to extract value from html response and pass it on to next request in postman

Example url: https://abc.xyz.com/m# HTML Response: . . …
GreyndBlue
  • 331
  • 1
  • 2
  • 11
11
votes
1 answer

How to pass variables from JSON to postman body

I want to parameterized my tests in Postman. This is the example body of POST request: { "entity_id": "{{entity_id}}", "text": data.comment_name } entity_id is global variable and it works correctly, but I want to set value of text from JSON…
robmax
  • 332
  • 1
  • 6
  • 24
9
votes
5 answers

Can Postman take a file as a variable from a path?

I have a postman collection, with a set of three API calls I'd like to chain together and feed with a data file using the runner function. Lets say they're: /prepareUpload /upload /confirmUpload and the output of each is needed for the next step.…
Kristan
  • 129
  • 1
  • 1
  • 6
9
votes
6 answers

How do i set up a bearer token in postman from an environment variable?

I have set up a collection in PostMan and am able to save my bearer token value to an environment variable successfully using the following test var jsonData = JSON.parse(responseBody); pm.environment.set("mytoken", jsonData.token); but how do I…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
9
votes
6 answers

Postman Collection Runner returns "No test" when running tests

I want to test the collection Test Server in Postman Collection Runner. However, when I run my tests they don't respond with a pass or fail. Postman only displays "No test" as a result. Why are my tests returning "No test" in the Postman Collection…
Toi Nguyen
  • 413
  • 1
  • 6
  • 17
8
votes
1 answer

How to download attachment from Postman Response

I have a API which sends response having following header: Headers(8) Test Results(1/1) Status:200 OK Time:5890 ms Size:1.24 MB Access-Control-Allow-Origin →* Cache-Control →no-cache Content-Disposition →attachment;…
Archit Goyal
  • 83
  • 1
  • 2
  • 6
7
votes
1 answer

"TypeError: Cannot read property 'sigBytes' of undefined" error in pre-request CryptoJS script

I'm getting "TypeError: Cannot read property 'sigBytes' of undefined" error when running a postman collection with a cryptojs pre-request script. The pre-request script computes a hmac-sha256 signature which is also part of parameters of the main…
7
votes
4 answers

How to Set Variable from Request in Postman

I am trying to write some tests for Postman. Many of the requests require an API key that gets returned by an initial GET request. To set something hard-coded that is not dynamic, it looks like the test code is of the form let variable =…
Matthew
  • 1,461
  • 3
  • 23
  • 49
1
2 3
31 32