Timothy yeoh
Timothy yeoh

Reputation: 3

Latest changes to Postman tests doesn't reflect in Newman

I'm noticing that any changes to tests in Postman isn't reflected when running in Newman. Example: In Postman, I change the following text from '200ms' to '100ms'

console.log("Hello World!");
      
pm.test("C6 Verify response time is less than 100ms", function () {
        pm.expect(pm.response.responseTime).to.be.below(100);

Postman screenshot

But in Newman, it is still getting '200ms'

  GET https://reqres.in/api/users?page=2 [200 OK, 2.06KB, 172ms]
  ┌
  │ 'Hello World!'
  └
  √  C6 Verify response time is less than 200ms

Newman screenshot

Is there a way to clear the cache or something? So that Newman gets the latest test changes from Postman?

Upvotes: 0

Views: 420

Answers (1)

PDHide
PDHide

Reputation: 19989

Postman doesn't store/sync collection and environment with the exported json file. You have to do it manually. Export collection and environment as json file if you want the new changes to get reflected in nemman

enter image description here

Update:

as you are using public url link you have to update the link manually as the link won't get updated automatically:

enter image description here

Upvotes: 1

Related Questions