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
6
votes
1 answer

Postman Mock Server matching algorithm logic for request body param

I have two scenarios for the following API URL. POST http://{{ip_port}}/oauth/token When I put the user name and password correctly, it should return 200 and mock json response. When I put user name and password incorrectly, it should return 401…
user1156041
  • 2,155
  • 5
  • 24
  • 54
5
votes
0 answers

Postman - Access Token Retrieval using Authorisation Code grant type

I have set up a release pipeline to automatically deploy an API artefact to a particular domain, and as part of that pipeline I have introduced the execution of a postman collection via the Newman CLI, the ultimate goal that I want to achieve with…
5
votes
1 answer

In Postman, how to define pm.iterationData() when NOT using Collection Runner?

My use case is simple: I have a Postman Collection with a few requests, one of them is: GET www.example.com/stores?country={{country}} Then a simple Test: pm.test("Check number of stores", function () { var jsonData = pm.response.json(); …
Siaynoq
  • 452
  • 1
  • 5
  • 13
5
votes
3 answers

How to Test Same Endpoint Multiple Times with Postman Runner

I am trying to write an automated test Runner in Postman. I would like to test the same endpoint multiple times in a single run while changing the value of a parameter. For example I would like to…
Matthew
  • 1,461
  • 3
  • 23
  • 49
5
votes
2 answers

PostMan Test scripts: Inspecting contents of response JSON

PostMan 6.0.10 here. I'm trying to understand how to write test scripts a little better, and after reading their otherwise superb documentation I still have some confusion surrounding how to query & examine the JSON response coming back from…
smeeb
  • 27,777
  • 57
  • 250
  • 447
5
votes
1 answer

Reuse {{$randomInt}} in Postman

My 1st request is: GET http://example.com?int={{$randomInt}}. I need to run 2nd request (with other tests in it) to the same address, so I need to save generated variable. How can I do it? I was trying pm.variables.get("int") in the "Tests" sandbox…
Shurov
  • 400
  • 1
  • 9
  • 20
5
votes
3 answers

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

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…
Stevoisiak
  • 23,794
  • 27
  • 122
  • 225
5
votes
0 answers

How to import Newman test results into Postman

In the documentation for command line integration with Newman it says: The results of all tests and requests can be exported into a file and later imported into Postman for further analysis. Use the JSON reporter and a file name to save the…
5
votes
1 answer

Postman Newman - Requests that work in Postman fail in Newman with ETIMEDOUT

All requests to a specific server are timing out with the error ETIMEDOUT. [...]$ newman -c Test.json.postman_collection Iteration 1 of 1 RequestError: [223f1c83-1bb6-b40c-acc7-d90a2dd4e4ce] 'HB Heart Beat' terminated. Complete error: Error:…
RangerDan
  • 81
  • 1
  • 9
4
votes
1 answer

Postman commercial use without using Postman Cloud sync for >3 person team

Postman (the company) indicates that commercial use is permitted providing you adhere to the licence according to their support statement below, however while the support statement appears on the surface to be clear it then goes on to refer to the…
David Ford
  • 695
  • 1
  • 6
  • 13
4
votes
2 answers

How can we implement an Open with Postman button to open a postman collection link sent from a third party react application?

I'm working with a react application and in that, I want to pass a postman collection link and open that postman collection in the postman web application. Is there any way I can try?
4
votes
5 answers

How to compare two dates in Postman

I have a scenario where I need to compare a date from an API response with today's date and check whether it is less than or equal. The API response will give me a JSON object and in that JSON the key " License" will contain a date in the format…
Linu
  • 589
  • 1
  • 10
  • 23
4
votes
2 answers

Postman test to find a keyword in a response array

I am creating a test in postman to check for a keyword "pregnancy" in each "name" field in the JSON. If each 'name' field in the JSON contains the keyword then pass the test, else fail. Find the script below that I have tried using var jsonData =…
4
votes
3 answers

HTML report generation in postman

I want to generate HTML report for APIs with the help of postman application. I want to run my collection and environment simultaneously and generate HTML report of pass and failure results. please guide me.
Amit Pal
  • 177
  • 3
  • 11
4
votes
1 answer

Newman.run is causing heapUsed to increase but does not release the memory while repeating in iterations

I have a very small collection with a single call to a url that does not exists thereby generating an error. I am iterating it in soak cycles, each cycle generates a memory spike of around 2.9-3 MB and does not release it. After first run heapUsed…
Ulysses
  • 5,616
  • 7
  • 48
  • 84
1
2
3
31 32