Reputation: 3
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);
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
Is there a way to clear the cache or something? So that Newman gets the latest test changes from Postman?
Upvotes: 0
Views: 420
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
Update:
as you are using public url link you have to update the link manually as the link won't get updated automatically:
Upvotes: 1