Hi there. I’m having an issue with Assignment 2 for Postman API Test Automation for Beginners by freecodecamp by @vdespa.
I am having the same error as @mortypython1 but the fix listed in that post did not resolve my error, so im trying to figure out what the issue is.
The assignment was to add a status 200 test for each request. Which I have done. But I’m getting this test failure message:
orders > Create a new order: contains status code test | AssertionError: check script: expected ‘pm.test(“Status code is 200”, functio…’ to include ‘pm.expect(pm.response.code).to.eql(20…’
Here is a screenshot of the test script that is failing:
And this screenshot shows the failed test message and part of the script from the ‘Verify your work’ request.
I’m new to this so i’m not really sure why this has failed. Any advice on what to try next?