You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sending a POST request by hardcoding a required parameter value in double-quotes in the request bosy, since the parameter only accepts unique values I am using a previously used value to check that the right response comes. Postman gives the expected response message with 200 ok status but Newman returns different response message (found using console.log(responseBody)) with 404 not found status
Here is the test - if (responseCode.code === 200){ pm.test("Overlapping offering code", function () { pm.expect(pm.response.text()).to.include("An offering with the same OfferingCode"); }); }
In Failure Detail Newman console shows - response code is 200
expected response to have status reason 'OK' but got 'NOT FOUND'
at assertion:0 in test-script
inside "Overlapping Offering Code"
To add, I have validated JSON in the Request Body during runtime, it is okay while running collection from both Postman and Newman.
I am using Postman v7.26.1, Newman 5.1.0, Windows 10 64bit
The text was updated successfully, but these errors were encountered:
I am sending a POST request by hardcoding a required parameter value in double-quotes in the request bosy, since the parameter only accepts unique values I am using a previously used value to check that the right response comes. Postman gives the expected response message with 200 ok status but Newman returns different response message (found using console.log(responseBody)) with 404 not found status
Here is the test -
if (responseCode.code === 200){ pm.test("Overlapping offering code", function () { pm.expect(pm.response.text()).to.include("An offering with the same OfferingCode"); }); }
In Failure Detail Newman console shows - response code is 200
expected response to have status reason 'OK' but got 'NOT FOUND'
at assertion:0 in test-script
inside "Overlapping Offering Code"
To add, I have validated JSON in the Request Body during runtime, it is okay while running collection from both Postman and Newman.
I am using Postman v7.26.1, Newman 5.1.0, Windows 10 64bit
The text was updated successfully, but these errors were encountered: