Questions tagged [newman]

Newman is a wrapper around Apache HttpClient for Scala. It allows request and response serialization, supports ETag HTTP caching and in memory response caching with TTL expiry.

Newman is a wrapper around Apache HttpClient for Scala. It allows request and response serialization, supports ETag HTTP caching and in memory response caching with TTL expiry.

It also allows to shrink code for classical Apache HttpClient requests and provides nice syntax features thanks to a custom DSL which allows to write very simple and readable code.

Newman is a Node.js module. For more details refer to newman (NPM).

Using Newman, one can effortlessly run and test a Postman Collections directly from the command line. It is built with extensibility in mind, so that you can easily integrate it into your continuous integration servers and build systems.

421 questions
4
votes
0 answers

newman CLI '--export-collection' not outputting updated collection variables

When using the newman CLI (version 5.2.2), there is a requirement to save updated collection variables after a run. To achieve this, -export-collection is being used but variables in the collection at do not contain updated values…
David Gard
  • 11,225
  • 36
  • 115
  • 227
4
votes
1 answer

Clearing Cookies Programmatically is not working in Postman and Newman

I need to be able to delete cookies automatically in between requests when they I run my collection of requests in Newman and Postman Runner (mainly Newman). I followed the suggestion given in this comment by a person from Postman:…
4
votes
1 answer

How to fix the read ECONNRESET at request ( with newman tool)

I am trying to execute the POSTMAN collection with multiple requests using the NEWMAN CLI tool. All the requests in the collections are executed successfully with postman but when i execute with newman tool it's failed and it show an error as 'read…
PavanS
  • 317
  • 1
  • 6
  • 14
4
votes
1 answer

Postman: how to send asynchronous request by script

I got two requests: A and B in postman. I want to send the request A first then send the request B while request A is still waiting for the response. It's quite easy to do this mannually because request A take 15s to finish. But are there anyway I…
Lê Quang Bảo
  • 2,670
  • 2
  • 27
  • 40
4
votes
1 answer

Newman: Unknown encoding: latin1 pop up when running Newman cli on AWS CodeBuild

I have the Newman (postman cli) setup on AWS CodeBuild a few months ago, it was working perfectly. Then this error popped up from nowhere: error: Unknown encoding: latin1 Run the same command in local work perfectly. Run the same command on inside a…
Kun Su
  • 41
  • 3
4
votes
1 answer

Allure report is empty after generation

I'm using allure 2.8.1. I've installed it with NPM into my docker container. After it I run allure generate test-results command to generate allure report from junit xml's, that are generated with newman tool. In report directory there appears an…
Sergei Podlipaev
  • 1,331
  • 1
  • 14
  • 34
4
votes
1 answer

Display test result from Newman on vsts

I have a vsts build where I run newman tests, tests work file but I do not get any report back even though the command i sent. the steps are 1) installing newman on build agent 2) running tests newman run collection.json…
4
votes
2 answers

How to set setTimeout/Thread.sleep in newman

How to set setTimeout/Thread.sleep in newman(postman's node module). I am using below function : setTimeout(function(){ console.log('sleep for ten min'); }, 600000); Above function works perfectly in collection runner of postman. But…
Shubham Jain
  • 16,610
  • 15
  • 78
  • 125
4
votes
0 answers

Newman running external script

I am using newman nodejs library to run my collection How can I use an external javascript file (file present in same folder as the collection json) to use for prerequest script my collection class where src value is the path to script…
prateeksarda
  • 949
  • 1
  • 10
  • 15
4
votes
2 answers

Generate Sonar code coverage report from Postman tests

Does anyone know if it is possible(and how) to generate code coverage out of the Postman integration tests execution? We have integration tests based on Postman and we execute them on Jenkins via a Windows shell command. What is quite frustrating,…
Georgi
  • 189
  • 2
  • 12
4
votes
1 answer

Run Postman jetpack test thought Newman commands

I'm using the Postman Jetpacks tests collections, they work very well, but I must run the test inside the Postman application. Actually I need to run the tests I designed in Postman Jetpack using a command line to make it scriptable. My approach is…
Manjar
  • 3,159
  • 32
  • 44
3
votes
2 answers

Receiving could not find “htmlextra” reporter when i run it on my local (Linux) neman html report generation

I am receiving the below message when I run Newman run the command with parameter -r HTML extra. Where I have already installed HTML extra using -g (globally). But when I create a Newman .js file I am able to execute. Please advise what might have…
3
votes
1 answer

Getting access token from OKTA in PKCE flow without user interaction

We have REST Web API written in .NET CORE, which are used on REACT SPA, we are using OKTA with PKCE. For our API(s) we have end to end test cases written using postman/newman, the API(s) depend on JWT access token for finding user details. How can I…
asolvent
  • 821
  • 13
  • 26
3
votes
1 answer

How to get values of variables from one Postman environment into another

I have a scenario where I have two APIs (V1 and V2). I also have a Postman collection with requests like this already setup {{base}}/myApi/{{Version}}/myResource What I would like to do is have a separate environment for each version ( eg Dev_V1…
O'Neil Tomlinson
  • 702
  • 1
  • 6
  • 28
3
votes
1 answer

Getting syntax error while running newman on ubuntu

I am new to newman. I exported my collection.json and env.json and am trying to integrate with my CI\CD pipeline (vsts in this case). I have two taks - install newman & then run tests. Newman installation works fine but the task of running the test…
Naxi
  • 1,504
  • 5
  • 33
  • 72
1
2
3
28 29