Questions tagged [postman-newman]
85 questions
0
votes
1 answer
Collect newman cli reporter logs into a string in Nodejs
I have a case wherein I need to capture the logs generated by Newman CLI reporter under newman.run() function inside the Nodejs code and use it for later. There is no such option under reporter to capture the logs inside a file or a stream. Any…

Hrishikesh Bawane
- 149
- 3
- 13
0
votes
0 answers
How to use Newman to run only first X requests from the collection
Is there a way to use Postman's Newman to send only the first X requests in the collection without editing the collection file?

Aviad
- 33
- 8
0
votes
0 answers
Generating junit skipped eport in newmen
I have a load of testcases in Postman, split into several collections, so that they can be run independently using Jenkins.
Calling collection
In package.json
newman run \"collections/${npm_config_collection}.postman_collection.json\" \
-e…

JoSSte
- 2,953
- 6
- 34
- 54
0
votes
0 answers
Newman and zap container - issue with self signed cert
I am trying to proxy Newman through Zap so it can pick up my API calls from the postman-collection
I am using an Ubuntu container with Newman installed to do this so I can test up front with curl.
Dockerfile:
FROM ubuntu:22.04
ADD…

phil
- 1
0
votes
0 answers
HTMLExtra report is not generated in docker pipeline
For some reason after the node is upgraded to 16, reports stopped getting generated.
There is no error
node : 16
Newman : 5.3.2
htmlextra: 1.22.11
collection: './test_suites/' + collectionFile,
environment: './envs/' +…

raj
- 27
- 6
0
votes
0 answers
Uploading and altering a file in Postman
I am automating my API testing using Postman and Newman. I'd like to automate the process of uploading a file to my API, however before the file gets uploaded it needs to be altered.
I can see how a file can be uploaded automatically, however I…

tbowden
- 1,008
- 1
- 19
- 44
0
votes
0 answers
Postman execute script before collection run
I'm a Java Developer and I'm starting to use Postman Runner and Newman. I have a test suite that need a token for the authorization header. This token is generated with a 3rd party service and I need to generate only one to run the entire test…

Alvaro Pedraza
- 1,176
- 6
- 20
- 44
0
votes
0 answers
How do I display response body using node.js and postman collection?
I can't seem to frame my question correctly to get a useful answer.
I have a Postman collection. I have exported it as a JSON and I want to use node.js/newman to run it in several parallel instances to validate a fix for some code that wasn't thread…

Keith Fosberg
- 89
- 2
- 9
0
votes
0 answers
How to show total of all postman asserts in Neman Report?
Newman test reports do not show postman assertions. They only cover one assert for each api.
https://florida23.github.io/aut_api/allure-report/
I have 44 asserts in the apis, but it doesn't count. It only counts one test per api.

Staulik
- 19
- 1
- 5
0
votes
0 answers
Newman html report format got changed once the execution is completed in Jenkins
I have created few APIs using postman and running using newman tool and htmlextra to generate HTML reports. On my local machine i am able to see the proper format of html, but when i integrate the scripts through CI/CD in Jenkins. HTML report format…

Driod
- 23
- 6
0
votes
0 answers
Allure-newman history in suites
at my work we actually run API Tests with newman and HTML Reporter and we want to switch to allure. There are daily runs which generate the daily reports and those are clickable in a folder navigation. But we want to to see every run in allure and…

mredgn
- 1
- 1
0
votes
0 answers
How to automate the postman's grant_type='authorization_code' with newman
We are trying to automate the Postman collection get API with Newman.
Here, the used grant_type is authorization_code.
With Postman, it is possible to authenticate and generate the new token.
The main issue which we are facing is because of the…

varsha
- 11
- 2
0
votes
1 answer
newman report without timestamp
I using newman in docker and I need that when generating a report timestamp is not added to the name
Newman as such does not have this parameter in it.
docker run -v ~/collections:/etc/newman -t postman/newman run…

user18239821
- 21
- 3
0
votes
0 answers
Multiple environments newman postman
I want to run multiple environments There is any way to run multiple environments in newman postman I tried nothing if someone help me regarding this

Atif
- 1
- 1
0
votes
0 answers
postman - read local json file and stringify it before setting to env variable
Currently while using Postman, I am facing an issue where I am not able to read content from local json file. The content from this json is stringified using bash commands.
Context:
I have yaml file and converted that to json using yq -o=json eval…

Tech Girl
- 11
- 3