Questions tagged [postman-newman]

85 questions
0
votes
1 answer

What flag to be used if I've used variables declared at collection scope in tests?

I've used variables at environment, gloabl & collection level scope in my tests. I'm aware of the flags to be used for environment & gloabl level scope i.e. -e & -g respectively. I'm not able to find flag to be used to pass the collection level…
0
votes
1 answer

syntax error while running collection in node js

while running below code const newman = require("newman"); newman.run( { collection: require("./test.postman_collection.JSON"), reporters: "cli", }, function (err) { if (err) { throw err; } …
0
votes
0 answers

How do I stop Newman to run a collection on certain response code?

I'm relatively new to this, How do I stop Newman to run a collection on certain response code? For example I want it to stop running on response 400 or 401 I tried the bail option but I guess I'm doing something wrong. Thanks for shedding some…
Craig
  • 1
  • 1
0
votes
1 answer

Command for generating a newman report with multiple external files and multiple post requests for postman API collection

I'm trying to generate a html-extra report with newman for postman automation API collection. But only found a way to generate a automation report with only one file. But I have multiple data files to input when executing APIs . So what is the…
Erandi Dilshani
  • 335
  • 1
  • 4
  • 11
0
votes
1 answer

Using 5 threads to run postman folders

Is there a way to execute postman folders in parallel in a testng way ? I have 5 collections, each one contains hundred of tests that are not dependent and use it's own data, so they can be parallalized. Setting 5 threads can reduce execution time…
Hamza Amami
  • 94
  • 4
  • 21
0
votes
1 answer

Async.parallelLimit Function Executing Callback Function Before Tasks

I am attempting to setup some newman test runs in parallel for different environments, and then create a Jira ticket via API request once all are completed with the results. However, when I use the ansync.parallelLimit function for that task, I…
0
votes
1 answer

Can I skip some of the selected "Api Requests" in postman while using it through Newman-Runner-CLI?

As a user, I have several API collections created using postman and now I've integrated the Newman-Runner-CLI. My question is that, is there any way to skip some of the selected API Requests from each collection, or is there is any way to add…
0
votes
1 answer

How to run web based Postman collection with Newman, on HTTPS protocol

I'm trying to run a collection from a free webhosting text files and I can run it easily with: newman run %https://mysite.txt% Now I'm trying to locally capture the sent requests from the newman run so I'm adding this command in CMD: set…
0
votes
0 answers

Getting + if [[ -z "$CI_COMMIT_TAG" ]]; then + ~ ... error on Windows 10 while using the shell executor

I'm using the below code in the gilab-ci.yml file stages: - test newman_tests: stage: test image: name: postman/newman entrypoint: [""] script: - newman --version - newman run…
0
votes
1 answer

Postman / Newman and uploading files from Azure Blob instead of local files

I am trying to add my postman scripts to an azure pipeline. To do this I am trying out newman. I use the postman api to get the latest collection as well as the correct environment. Using the uid and an api key i have created. All good so…
zawisza
  • 1,039
  • 2
  • 13
  • 25
0
votes
1 answer

Postman & Newman - cookieJar.getAll() requires a callback function

I am trying to call a graphql and get the data from cookies, it runs well in postman app. However when I trying to run this postman collection on the command line with Newman In terminal: newman run postman_collection.json -e environment.json then…
RH-st
  • 97
  • 2
  • 10
0
votes
2 answers

Postman test collection running well, all tests passed in Postman but all tests fails using Newman i comman line

My postman tests runs well and passes when i run the collection in postman. I've exported and saved my Postman collection.json into a folder, but when running the json file using Newman, all tests fails. some of the errors are:- getaddrinfo…
user14551704
0
votes
1 answer

When installing Newman, i get error "'newman' is not recognized as an internal or external command, operable program or batch file."

I have Nodejs and NPM installed on my computer, and i'm trying to install Newman to run my Postman collection, but after writing on my command line "npm install -g newman", i get the following warnings:- npm WARN deprecated har-validator@5.1.5:…
user14551704
0
votes
0 answers

Postman Newman htmlextra raport installation error

I have problem with installations errors when i use .. npm install -g newman-reporter-htmlextra I don't realy know how to solve this problem. Its happend olny with htmlextra raports when i install htlm raports its work…
0
votes
1 answer

Newman doesn’t see and doesn’t call a number of postman pre-requests

For some reason Newman doesn’t call a number of requests that are available in the Postman pre-request, but only the beginning and the last request. I start Run in postman - all requests in the pre-request are called, but Newman does not see…
juran
  • 59
  • 1
  • 4