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

Automatically call API from Postman and generate a JSON response in a file

I am using Postman to call API. I have a couple to call, so I made a collection and I am able to run it. I am trying to get the results of the API saved in a file (JSON is fine) and then everytime I call the API, to get the file updated. It is…
2
votes
1 answer

Set a postman variable value from the Gitlab CI

There are two variables defined for my test. I want to set these values through the CI. Below is the code from gitlab-ci.yml smoketest-test: stage: smoketests-test dependencies: - deploy-test image: name: postman/newman:alpine #…
ankur
  • 4,565
  • 14
  • 64
  • 100
2
votes
1 answer

Postman - Add items to a collection variable array

In a GET request in Postman, I have added the script to the test section. The get request is run multiple times due to a page limitation. I am not able to collect all the data in one request. For the explanation, I grabbed a part of my code to make…
Test Test
  • 21
  • 3
2
votes
1 answer

Postman 2 OAuth tokens

Has anyone had to deal with 2 OAuth 2.0 tokens in postman? I am in the process of automating some API calls for testing and have been stuck at a point where I had to make 2 Authorization requests to get a successful response. I have one…
2
votes
0 answers

Postman Mock Server matching algorithm logic for request body param form-data

Is there any option to send mock results depends on form data body value in postman? I am sending some value in the body as form data and I have two example result and now the mock API return only one example I need to get the result based on the…
2
votes
1 answer

Postman : How to run some request multiple times and others single time using Postman or Newman

I have three API requests in a postman collection. I want to run the first and third requests once and the second request multiple times using a data file. When I pass the data file to the Postman runner it runs all the three requests multiple times…
Pankaj Devrani
  • 510
  • 1
  • 10
  • 28
2
votes
1 answer

Postman collection run async

I noticed the iteration is run in sequence. Is async running supported in postman? For example: POST ENDPOINT A POST ENDPOINT B GET endpoint C GET endpoint D Collection One Run iteration 5, for 1,2,3,4 Collection Two Run iteration 10, for…
user2201789
  • 1,083
  • 2
  • 20
  • 45
2
votes
2 answers

Postman - execute the first request for the first iteration only with multiple requests * multiple iterations

I get a postman collection contains request A,B,C. When I run with multiple iterations (e.g. 3 iterations), I should ensure the request A is executed only for the first iteration and the request B & C is executed for each iteration, like…
rong
  • 121
  • 7
2
votes
1 answer

Define multiple variable and Initial Value in Postman

I have to added multiple environment Variables and Initial Value in Environment Variables Using the same variables for API in Postman e.g. {{env}}/api/v1/searchvalue Error Message display like below. Could not get any response There was an error…
Vipin Singh
  • 109
  • 1
  • 14
2
votes
3 answers

Postman Pre-request Script for authorization bearer token

I'm trying to make script to generate my authentication bearer token for collections. so I don't have to pass token each time and I will Inherit auth from parent. But I don't know where I'm wrong in script, I'm not able to generate token and it…
2
votes
1 answer

Import newman (postman) in typescript project?

I want to use newman (https://www.npmjs.com/package/newman) in a typescript project to execute postmancollection, but when getting an error when I import (import { Newman } from 'newman';) the module I tried instruction provided in…
Jtt
  • 61
  • 3
2
votes
1 answer

Print API response in "Test results" tab in Postman

I'm using Postman automate an API with Newman.But the response body of the API call is not showing in the newman. var body = JSON.parse(responseBody); tests["Response Body ", body] = true; I have tried the above code,but even after successful API…
Linu
  • 589
  • 1
  • 10
  • 23
2
votes
1 answer

Disable requests in postman collection run

I have 100 request in collection runner and there are some request that will execute only on some condition. Actually when we run the postman collection it will execute all request 1 by 1. In my case there are 10 requests in collection runner and…
Mehran Shafqat
  • 422
  • 2
  • 5
  • 16
2
votes
1 answer

How to loop thru each row in the data-file in Postman Collection Runner & then output into file

I have a Postman test that executes a query based on the ID from that data-file (.csv), and supposed to return the "Name" (in the response). This data-file contains multiple entries. But the dilemma I have as following (I have 2 questions): 1. How…
KVN
  • 863
  • 1
  • 17
  • 35
2
votes
1 answer

Using Postman runner to call API n times for benchmark testing

I am writing a new API and want to be able to see how it fairs when hit with n requests. I have tried to setup environment variables and use the runner tool within Postman to no avail. End goal is to run it n times, where I pass in the value of [n]…
andrewb
  • 2,995
  • 7
  • 54
  • 95