Questions tagged [postman-newman]

85 questions
5
votes
1 answer

Jenkins and newman - report not showing

I've defined the following step in a JenkinsFile which generates an html report while running the Jenkins pipeline: stage('Run Integration Tests') { steps { dir("${env.WORKSPACE}/test/integration") { …
Guy Hagemans
  • 496
  • 1
  • 4
  • 15
3
votes
0 answers

how to override collection variable from newman cli? --env-var did not seem to work

I need to override the collection variable from command line using --env-var(there is no --collection-var in options) but seems not working, I think because collection variable is narrow than the environment so won't work. I cannot change the…
Ron Lu
  • 31
  • 2
2
votes
1 answer

How to add Postman test asset error or success message

In the postman I have following test. How to give assertion success or error message. I don't want to give message as console.log("my msg"). Coz console message goes to the console.I want to show the message as in the picture where postman shows…
Masi Boo
  • 635
  • 1
  • 10
  • 24
1
vote
2 answers

How to run postman Collection and Environment in CMD using newman by using Postman APIKey

I want to run my postman Collection and Environment in CMD using newman by using Postman-APIKey. What I tried: newman run "https://api.getpostman.com/collections/{{collectionKEy}}?apikey={{APIKey}}&EnvironmentKey={{EnvironmentKey}}" After running,…
1
vote
0 answers

Can I remove request calls in the Newman CLI Reporting?

I am in the process of converting an application's testing API Framework from Karate to Postman / Newman. I have all of the tests passing and everything is going well. However, due to the size of the application there are a lot of tests and requests…
1
vote
0 answers

When Newman run postman colleciton how to exclude certain rest url pattern

I have a windows bath file to run newman with the given postman request collection with html report. newman run my_collectoin.postman_collection.json -r htmlextra in this collection I have few REST endpoints…
Masi Boo
  • 635
  • 1
  • 10
  • 24
1
vote
1 answer

Cannot replace body in newman (works in postman)

I am trying to replace a body with a pre-request script in Postman/newman. For some reason, it works in Postman but not in newman. So I have this pre-request script: // pm.environment.set("NEW_CONF", "FOO"); //…
Apollo
  • 1,296
  • 2
  • 11
  • 24
1
vote
1 answer

Need to avoid manual clicking GETNEWACCESSTOEKEN Button in postman

My current project is Oauth 2.0 autho based.At postman,I can generate accesstoken using #Getnewaccesstoken button for my collection. I dont want to click the generate token button in every time...Is any option there in prerequiste script form for…
1
vote
1 answer

Variable, relative resource path for binary request body in Postman/Newman

Context I am developing a web application that avails of a suite of REST tests built for Postman. The idea is that you can run the tests manually with Postman as a REST client against the application runtime, and the Maven pom configures newman to…
Mena
  • 47,782
  • 11
  • 87
  • 106
1
vote
2 answers

Cannot run the newman command on windows 10

I tried to install newman globally but no luck and here is what I did: First I installed newman as follows: Then I ran the command newman -h in another command prompt window: 'newman' is not recognized as an internal or external command, operable…
CryptoBird
  • 508
  • 1
  • 5
  • 22
1
vote
1 answer

Command hanging in C# when running Postman's Newman command

I'm trying to use cmd CLI to excute a newman collection run. However when the process is running it's getting stuck and never finishes processing. Any suggestions on how to deal with that? string cmdCommand="newman run demo.postman_collection.json…
Aviad
  • 33
  • 8
1
vote
0 answers

Command / CLI based REST Http client to process bulk requests (i.e. like .http files)

Need a tool/setup in place that will trigger RESTful webAPI requests using a preformatted file (which contains Http request config and payload) .. like the .http file format supported by VScode REST client. We need a CLI because the process is…
Hemant Tank
  • 1,724
  • 4
  • 28
  • 56
1
vote
0 answers

consolidating the json reports in postman-newman

please help me! Now I have faced with an issue, when we run multiple collections with Newman, there will be HTML or JSON reports for each collection and I want to have a single consolidated JSON report like merging all JSON reports of all…
mesut ali
  • 11
  • 1
0
votes
1 answer

How to set an accessToken in postman by passing the credentials in newman

I have a pre-request Script in my postmancollections.json file which does the following: const executedOnce = pm.environment.get('executedOnce'); if(executedOnce == 0) { console.log("Getting Access Token"); const tokenUrl =…
0
votes
0 answers

How to customize allure report name?

I am running a postman collection using newman and generating the reports using Allure framework. My command looks something like this: newman run $collection_filename -e $environment_filename -r allure --reporter-allure-export…
1
2 3 4 5 6