Questions tagged [postman-newman]

85 questions
0
votes
1 answer

How to make postman assertion on an array

"thing": [ { "id": 1, } ] How do I assert that thing is an array with an object that contains ID I tried expect(response.thing).to.deep.include('id'); But that doesn't work
bezzoon
  • 1,755
  • 4
  • 24
  • 52
0
votes
1 answer

How to make assertions on nested fields with newman

response { user: { id: 1000 } I can make an assertion on the user key pm.expect(response).to.have.key("user") How do I make an assertion that id is there? I tried this and it doesn't…
bezzoon
  • 1,755
  • 4
  • 24
  • 52
0
votes
0 answers

My Assertion is failing on newman but not Postman

My Assertion in Postman are passing. However when I run it on Newman ther are failing This are the response on Newman expected '{"code":"HttpRequestMethodNotSupportedException","message":"Request method 'POST' not supported"}' to deeply equal…
Lakay
  • 1
0
votes
0 answers

Postman-Newman: Run each request in collection in parallel

I need to create a huge data and for that I need to send a request 2000 times and in response it will give me back the id then using the id I need to run another collection using a file containing 100 records. I know newman can run a particular…
0
votes
0 answers

How to make newman/postman collection with generated bearer token

I have API to get bearer token. This is a POST call that given token as respose. How can I save this response as token for otehr API call. This token is used to all other GET and POST call as bearer toeken. How can I do it? Eventually, I would like…
0
votes
1 answer

Receiving a 429 error when iterating through data using Newman with Postman collection

New to Postman and Newman. I am iterating through a CSV data file, at times the values are few (20 or less) and at times they are great (50 or more). When iterating through large sets of values, 50 or more I receive a 429 error. Is there a way to…
0
votes
0 answers

Running multiple iterations of an API call with Newman

I am creating a series of API calls in Postman, I am then putting together a C# script to run them through Newman and the Postman API in a specific order, one of my collections contains a call that I need to run several times depending on the result…
0
votes
0 answers

running multiple collections using a script into gitlab-ci failed

I'm facing an issue with newman. Actually, i'm trying to do a script to run all collections in one time. But at some point, the script failed and the last collections are not running. Can someone suggest me a solution ? the script that i'm using…
0
votes
1 answer

Postman-Jenkins-Jira Integration

I have a postman collection which in turn is integrated to Jenkins via newman. I need to integrate my Jenkin results with Jira via X-ray plugin. I tried using newman junitxray reporter but this report consider each request as test case. In my…
0
votes
0 answers

Getting "getaddrinfo ENOTFOUND www.google.com" error while running postman collection using Newman package

I am new to Newman package execution with postman collection. I have done the following steps to run the postman collection using Newman package, but getting 'Assertion failure in the Newman report' with this message "getaddrinfo ENOTFOUND…
Quick learner
  • 699
  • 4
  • 22
  • 39
0
votes
0 answers

How to store previous report to gh-pages branch

I have following workflow in github action. I am using newman to run my postman collection. Here what I want to do Run newman and then store into gh-pages branch. but at the same time I want to store previous report too. For now it's storing only…
Hari
  • 75
  • 2
  • 10
0
votes
0 answers

How to fix self-sign certificate in certificate chain when running postman collection

I am running Newman on a collection. I get "unable to fetch data from url....." and "self-signed certificate in chain". I've read most all the related posts and none seem to work. I've tried the --insecure and -k switches, along with…
0
votes
1 answer

How to run multiple postman/newman collections in docker container

I am trying to run multiple postman collections in a docker container. Since postman doesn't come with the feature to run a folder with multiple collections, I tried to run multiple commands in docker. Nothing worked. This is my dockerfile. FROM…
Elen Mouradian
  • 475
  • 1
  • 8
  • 13
0
votes
1 answer

azure devop selfhosted agent, newman command not recognized

Trying to run my postman collection in azure devops inside a self-hosted agent. When I try to run the command inside the agent "newman run postman_collection.json -e postman_environment.json -r cli,htmlextra" it's running fine. But when I run the…
0
votes
0 answers

Connection refused testing health page in azure pipleine

My target is to run our postman integration tests inside our azure pipeline. For this I am trying to access the health page of my service inside the Azure Pipeline. Sometime it works but sometimes I get a Connection Refused. I also tried a loop to…
cpiock
  • 1,275
  • 2
  • 17
  • 44