I need help writing a common function to use across a collection of requests which will help with building a framework.  I have tried using the below format   The following function is declared in the Test tab in the first function  postman.setGlobal...
I want to use linq.js for my assertions. Is there a way to include an external library in Postman?...
One of the controller methods in my NestJS application is supposed to take plain text as its body but whenever I try to make a request, the parameter is received as an empty object. Is this even possible or am I going to have to create some sort of D...
I need to use some async code in my Postman test.   As it's a complex scenario I've reproduced the scenario in a very simple test with the following code:   let promiseNumber = 0;  function resolvedPromise() {     return new Promise((resolve,...
I'm trying to access the response of my POST request in Postman via Post Request Script.  I added this 2 lines, under Pre-request Script    let response = pm.response.json();  console.log('JSON Response: ',response );   Then, I opened up...
I'd like to run newman on my CI environment (solano-ci).   newman is a tool that runs through requests in your postman collection.  I have a newman script in my package.json, and I also have a npm start script that starts the server at localhost:...
Can we read data from excel in postman for js tests?  OR can we write a js script which read data from excel/csv/notepad.  I have wrote some js script which automate my API tests. I am using Newman to execute them from command prompt.  I am writing a...
I have one setup call that returns session id in header as shown below.  curl -X GET --header 'Accept: application/json'  'https://<url>/initConn'   Returns a session id as part of response header as:  { ...,  "sessionId"...
I am attempting to run a script.js with newman from a locally saved postman collection. In postman the call works, and returns a response body token that I need access to.   I don't care how the response body is returned I just don't want to...
I am trying to create a JWT to get an access token for a Google Service Account to use in a Postman Pre-Request script.  But I keep getting this error in the Postman Console:   Error:   And in the Postman Response window I get:   There was an error i...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.