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);
});
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
In the newman command, I am passing the url collection instead of using the exported json file.
So, is there a way to clear the cache or something?
In order for Newman to get the latest test changes from Postman?
I understand now, thanks for this important info.
I have managed to get it done via manually clicking on ‘Update’ in the public URL section.
And I have also managed to do it via real time with the API.