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

How to tag test in Postman

I want to classified tests to run them for different purposes. As far as, I search I could not an option to tag some test and run test on demand. I also looked at Chaijs if it has such a feature, but could not be able to find a solution. What I…
Mesut GUNES
  • 7,089
  • 2
  • 32
  • 49
3
votes
1 answer

Newman report generation works locally but not from CI

I have a GitLab CI job running a series of Postman requests using a custom environment. I'm using Newman to run them alongside the newman-reporter-htmlextra npm plugin to generate a test report. The job looks like the following: postman-tests: …
avazula
  • 472
  • 1
  • 6
  • 23
3
votes
2 answers

How to integrate postman collection in maven pom.xml

I have postman.collection.json files and I am able to run those collections files through newman and using the below command. newman run test.postman.collection.json -e environment.collection.json -d test.csv It ran successfully and is giving a…
ArrchanaMohan
  • 2,314
  • 4
  • 36
  • 84
3
votes
1 answer

Cannot find module 'newman' Require stack:

I installed "newman" package on my computer globally and able to run newman on the command line npm install -g newman However, I need to run my test collections in nodejs script and the following statement throws an exception Cannot find module…
AustinTX
  • 1,322
  • 4
  • 21
  • 28
3
votes
1 answer

How to get the JSON response from newman

I tried to run the end point which is running fine on postman and I just exported as collection and running it through newman on JENKINS CI. Command: newman run .json -r json,cli I'm getting the response.json file in the…
ArrchanaMohan
  • 2,314
  • 4
  • 36
  • 84
3
votes
1 answer

newman environment variables - avoid using --env-var after each variable pass

I want to pass multiple environment variables using the newman CLI. newman run myCollection.json --env-var baseurl="fancy/url" --env-var user="admin" --env-var password="admin123" ` I hate that I have to write -env-var for each of the variables I…
Irvin Kubat
  • 31
  • 1
  • 2
3
votes
0 answers

Is there a way to run command lines asynchronously in Azure-DevOps Build Pipeline?

I'm setting up an Azure-DevOps pipeline in which I want to include automated tests via the Newman CLI. Imagine a pipeline like this. Build Project Copy build to test folder Run the application => (API-Server) Run Newman Kill API Server…
3
votes
0 answers

can an env variable in a newman env json file be set while executing a collection run

I am trying to do the following run newman within a jenkins pipeline. I am executing newman test using docker. However, my collection script has a few variables that need to be set that are dependent on the jenkins pipeline env. (i.e. since each…
Ramdev
  • 375
  • 1
  • 3
  • 12
3
votes
3 answers

Run Newman in jenkins

this is my first time using Jenkins for automated test.I've tried to run a test by integrate Newman with Jenkins but I always get the Console Error "Newman : command not found" as a result,it's make my test failed. I have looking for some…
Như Nguyễn
  • 31
  • 1
  • 1
  • 5
3
votes
4 answers

Can I use postman collection variable inside newman?

Using variables from scope: collection inside Postman works fine. But when I export collection and use it inside Newman it does not work as I expected. 1) Variabes are inside collection json, in the end of file - ok. 2) I use this code: var obj =…
gregPi
  • 118
  • 1
  • 7
3
votes
1 answer

ERROR: unsatisfiable constraints: nodejs-npm (missing)

I'm trying to install nodeJs, npm and newman in my docker image, so I have this in the docker file : FROM python:3.6.1-alpine RUN apk update && \ apk add --no-cache nodejs-npm && \ apk add --update nodejs && \ npm install newman…
Souad
  • 4,856
  • 15
  • 80
  • 140
3
votes
3 answers

connect ETIMEDOUT error using POSTMAN with NEWMAN

I'm using Newman in order to execute a POSTMAN collection but I always have the error "connect ETIMEDOUT". Using just POSTMAN it works fine, but not with NEWMAN. The testing is quite simple, create a content on the server …
Paco
  • 41
  • 1
  • 1
  • 5
3
votes
1 answer

Authorization bearer token in postman

Im trying to automate postman tests with Newman. There is an issue with authorization. The authorization bearer token changes and it is dynamic. Does anyone know how to automate this?
Zed
  • 191
  • 2
  • 13
3
votes
3 answers

Modify environment with tests while running Postman Newman in NodeJS

I'm running Newman in a Node Script. The collection has environment variables such as {{claimNum}} that would increment with each post by the test. Example: I have this collection request body 0001
Nicolás A.
  • 523
  • 4
  • 10
3
votes
2 answers

Newman not using environment variables

I have a Postman collection that I am trying to get working with newman, but my environment variables aren't being used. The request URL is simply {{url}} and then I have an environment variable of the same name. I am running my test with this…
Megan Barton
  • 51
  • 1
  • 6
1 2
3
28 29