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

Is that possible to execute newman collections from jasmine tests

I have written a few api tests using jasmine in node platform. and we have some of the existing api testcases in postman collections. Now we are thinking of executing both the test cases in single execution.. We were able to execute the postman…
0
votes
1 answer

How to set failed in POSTMAN Collection runner via script

How can I set a "FAILED" via script? I have a IF and in this if I want to check is X compare to Y. If not I want to get an "FAILED". For now I get an "FAILED" in my console but the test is "PASS". I already searched other sites but found nothing…
0
votes
2 answers

how to attach the token in the header by automation script in postman

I am trying to automate API testing using Postman. Apart from AuthAPI every other API is decorated with [Authorize] so I need to pass token. In my collection, the first API is AuthAPI, This API returns the JWT token. if I run the API in collection…
Kgn-web
  • 7,047
  • 24
  • 95
  • 161
0
votes
1 answer

Data unavailable error message while running script from Runner

I am trying to run my postman collection with the help of runner option while running the collection I am getting "Data unavailable" Error message and my script stop there itself. Can anyone please guide me for same.
Amit Pal
  • 177
  • 3
  • 11
0
votes
1 answer

Export CSV of a particular request in Postman using Newman

I have a JSON Collection of Postman requests. I am running it via Newman. Is there a way I can export the XML Response of a particular request(Not all) to a file using newman or postman Thanks
0
votes
0 answers

Newman test fails. ( JSON.parse syntax error )

I have an issue with Postman, to be more precise, his command-line counterpart, Newman. The tests run and execute just fine in Postman, but they fail miserably in Newman. I THINK I've isolated the source as when I delete 2 lines from the code let…
0
votes
1 answer

How to execute multiple postman.setNextRequest

I'm trying to execute the below in Postman. However, I do not see all the requests getting executed. Only 2 requests get executed i.e. the requests which triggers all the rest and the second one ReadByQuery_PODOCUMENT rest fail to execute. Thanks in…
Jonathan Vaz
  • 21
  • 1
  • 3
0
votes
0 answers

Unable to branch my tests using a variable in Postman

I have a collection with two folders, one for POSTs and one for GETs At the collection level, I have set variables And the following collection-level scripts to be run after every request: requestLast =…
Scott
  • 115
  • 1
  • 5
0
votes
1 answer

How to skip iteration in collection runner with data file in postman

Is it possible to skip (or repeat once again) the iteration through the collection using JSON data file in the Collection Runner like: if(pm.environment.get("skip").to.eql("yes"){ \\pm.iterationData.GOTOITERATION(2) <--PSEUDOCODE } I…
Borys Fursov
  • 548
  • 2
  • 5
  • 15
0
votes
1 answer

AWS Lambda task time out when adding newman

I am trying to execute Newman using Lambda, but I keep getting timeout when adding newman in index.js: const newman = require('newman'); exports.handler = function(event, context, callback) { console.log("aa = "); callback(null, "some…
0
votes
1 answer

how to handle "Invalid closing quote at line 2; found "\"" instead of delimiter ","" in newman

I am running postman collection in command prompt newman run "path\FCE_CalculateRate.postman_collection.json" -e "path\DevEnv.postman_environment.json" -d "path\Automated_Testing_Input_Data_06Apr18.csv" Prompts error message : Invalid closing…
Lalit
  • 43
  • 2
  • 3
  • 10
0
votes
0 answers

Create several requests at once in Postman

I am trying to test GitHub API and explore it's different endpoints. I have the different possibilities which are returned by let's say the initial get request on https://api.github.com. The returned list is: { "current_user_url":…
Curcuma_
  • 851
  • 2
  • 12
  • 37
0
votes
1 answer

Postman - Consider Timeout as test failure

I am using Postman v5.5.3 and trying to run a collection of requests with tests and report the results. I would like a TIMEOUT to be considered a test failure. This is not happening right now. I have 2 asserts as: pm.test("Status code is 200",…
D-Sect
  • 537
  • 3
  • 10
  • 22
0
votes
0 answers

How to make multiple postman requests with cycle-generated variables?

Task: I've got some id's on a server and I need to remove some of them while it's only possible to delete one per request. Result example: requests https://ids.com/1 and https://ids.com/2 Actual result: just one request…
Alex Tumanov
  • 435
  • 1
  • 3
  • 16
0
votes
2 answers

I'm writing a REST Api using express.js (Mongoose )

[ { "end_year": "", "intensity": 6, "sector": "Energy", "topic": "gas", "insight": "Annual Energy Outlook", "url": "http://www.eia.gov/outlooks/aeo/pdf/0383(2017).pdf", …