Postman API Test Automation for Beginners issues assigment #2

Hi everyone, I just ran my collection for Assignment #2 and I’m seeing mixed results:

  • :white_check_mark: 11 tests passed

  • :cross_mark: 8 tests failed

  • :stopwatch: Avg. response time: 421 ms

Here are the main failures I’m struggling with:

  • Correct collection returnedAssertionError: expected Assignment #1 to include 'Assignment #2'

  • Status > Get API statusAssertionError: expected undefined to be an object

  • Products > Get all productsAssertionError: expected undefined to be an object

  • Products > Get single productAssertionError: expected undefined to be an object

  • Clients > Register a new clientAssertionError: expected undefined to be an object

  • Orders > Create a new orderAssertionError: expected undefined to be an object

  • Orders > Get all ordersAssertionError: 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!