Hi everyone, I just ran my collection for Assignment #2 and I’m seeing mixed results:
-
11 tests passed -
8 tests failed -
Avg. response time: 421 ms
Here are the main failures I’m struggling with:
-
Correct collection returned →
AssertionError: expected Assignment #1 to include 'Assignment #2' -
Status > Get API status →
AssertionError: expected undefined to be an object -
Products > Get all products →
AssertionError: expected undefined to be an object -
Products > Get single product →
AssertionError: expected undefined to be an object -
Clients > Register a new client →
AssertionError: expected undefined to be an object -
Orders > Create a new order →
AssertionError: expected undefined to be an object -
Orders > Get all orders →
AssertionError: expected undefined to be an object -
Orders > Get an order by ID (status code test) →
AssertionError: expected undefined to be an object
The requests themselves seem to return responses, but the test scripts fail with undefined. I’m not sure if this is due to my test assertions, the environment setup, or something wrong with the collection itself.
Has anyone run into these same errors? Any advice on how to fix the “expected undefined to be an object” issue or the mismatch between Assignment #1 and Assignment #2?
Thanks in advance for any guidance!
