newman icon indicating copy to clipboard operation
newman copied to clipboard

[Feature Request] Newman doesn't sync with postman cloud so mockserver tests fails

Open praveendvd opened this issue 5 years ago • 0 comments

  1. Newman Version (can be found via newman -v): 5.2.1
  2. OS details (type, version, and architecture): windows 10
  3. Are you using Newman as a library, or via the CLI? CLI
  4. Did you encounter this recently, or has this bug always been there: Always there

Steps to reproduce the problem:

  1. Create a mock server with response body as

{ "name" : "{{name}}"}

where name variable is in the environment , and its value is "user"

  1. now in pre- requisite modify it as pm.enviroment.set("name", "new");
  2. In postman desktop app the response from mock server will be { "name" : "new" }
  3. But if we run the same using newman the output will be { "name" : "user"} as the changes made through pre-request will not be synced with mock server

-->

Expected behaviour:

  1. the output should be same as modified variable value

praveendvd avatar Nov 30 '20 08:11 praveendvd