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

Postman eval() - how to evaluate a property part of Json

I have a json response object like this: "results": [ { "seq": "882818::048313", "id": "user1" } ] } I have the entire json payload and id field name stored in 2 separate variables: var jsonObj = pm.response.json(); var…
user1893003
  • 45
  • 1
  • 4
0
votes
1 answer

Setting output variable using newman / postman is getting cut off

I have an output variable siteToDeploy and siteToStop. I am using postman to run a test script against the IIS Administration API. In the test portion of one of the requests I am trying to set the azure devops output variable. Its sort of working,…
DDiVita
  • 4,225
  • 5
  • 63
  • 117
0
votes
1 answer

newman support for setNextRequest

As part of PostMan collection there's a request which does setNextRequest using the below snippet. This snippet executes fine via PostMan collection runner, however it fails when executed via newman cli it errors out with 'expected false to be…
user457485
  • 267
  • 3
  • 15
0
votes
1 answer

Newman CLI treating strings in CSV differently from POSTMAN - parsing failure

Newman Version (can be found via newman -v): 4.2.2 OS details (type, version, and architecture): Windows 10 Pro Version 1803 Running all files locally, but hitting internal API Are you using Newman as a library, or via the CLI? CLI Did you encounter…
Robert
  • 25
  • 6
0
votes
2 answers

php api response not showing all results

I have a select query in a function, which executed in sql command prompt, displays all results. But in postman response, UserInfo is showing only 1 record as response. protected function getUserSession(){ $data = $this->params; $sqlquery…
Sushivam
  • 2,537
  • 4
  • 15
  • 25
0
votes
1 answer

Uploading a pdf - Tests not being passed when running my POSTMAN tests using newman

When I run my tests one by one on POSTMAN, it passes But Tests not being passed when running my POSTMAN tests using newman. However, when I try to run it with newman this is the error I get in terminal regarding no pdf file found
Eins
  • 37
  • 7
0
votes
0 answers

Newman - Running specific action before each testscript/testcase

I am currently using newman as my runner and I have this javascript file which handles bunch of events to be triggered during the execution. I am executing a collection which I exported from postman. I am having a problem wherein I used an event…
Newbie10
  • 99
  • 1
  • 14
0
votes
1 answer

How to fail a test in pre-request script in Postman due to some condition and not hitting the API?

How can I fail a test in a pre-request script in Postman due to some condition and not hitting the API? If some condition is not satisfying, I need to fail the test case, and for that API, I don't want to run that API and proceed to the next…
0
votes
1 answer

Newman requests fail if I do not put delay between the requests

When I run my collection without having any delay between requests, then the initial few requests pass but after that all the requests fail giving 405 status code. Now when I run the same collection with delay between the requests then all the…
Sanjay Bhatia
  • 47
  • 2
  • 11
0
votes
1 answer

How to parameterize tests for each iteration in Postman collection?

My GET request goes like this: /search?IW_INDEX={IW_INDEX}&IW_FIELD_WEB_STYLE={IW_FIELD_TEXT} The data file is as follows: IW_INDEX,IW_FIELD_TEXT index1,text1 index2,text2 My test for iteration 1 is as follows: tests["parameter1"] =…
0
votes
0 answers

Run next request with new iteration data from json by using setNextRequest in postman

I have a case where i have a folder in a collection which has to run for a specific set of iterations before going to the next folder. There is no direct feature in postman yet which allows you to set different iterations at each folder level and…
Raghav
  • 67
  • 2
  • 9
0
votes
0 answers

Why is Postman Collection Runner unable to detect data file type?

I use Postman Collection Runner with json data files - a lot of them and only json, no csv. Whenever I load or change the data file, the "Data File Type" dropdown switches to "Undetermined" and I have to switch it back to application/json all the…
JRoppert
  • 5,854
  • 5
  • 32
  • 37
0
votes
1 answer

How do you access req.body.title of a postman request with the body set to raw data

Here is the raw data that I am using. It is set to Text by default. { "title":"New Course", "description":"My course description", "user":{ "_id":"57029ed4795118be119cc437" }, "steps":[ { "title":"Step…
Josh Bowden
  • 892
  • 3
  • 12
  • 28
0
votes
0 answers

Run a collection for GET and POST requests specified in a single data file in POSTMAN

I am trying to run multiple iterations of a Collection on postman for different API calls using data driven approach. The collection file checks for a response status of 200 OK and time elapsed < 500 ms for the requests specified in the data…
Zankhana Rana
  • 169
  • 2
  • 16
0
votes
1 answer

Newman test summary shown mid-collection run

When running my collections in Newman, test summary is shown mid-run and carries on with the request. This is possible due to a large number of requests being in the collection, but I trimmed it down to the bare minimum. My question is, can I…