API Test Automation - Assignment 1 (last two tests failing)


i am facing the problem. please someone help me. how to solve this ?

Thank God. i have done this. is the result is correct? i just remove assertion part. after did this the responce had passed. @danny-dainton @valentin-despa.

Hey @iftierhossen :wave:

Welcome to the Postman Community! :postman:

That request is only verifying the work that’s been done in the other requests that you have created under the API requests folder.

What did the instructions say to do? Have you applied those instructions to the requests?


Tasks

Task 1

Add to the request “Get API status” a Postman test that verifies the status is 200.

Once you have established that the test is working as expected, duplicate the request and drag it inside the “Assignment #1” collection and put it in the “API requests” folder. Ensure the name of the request remains the same.

Task 2

Add to the request “Get single product” a script that parses the JSON response body. Log the value of the property “product-description” to the Postman console.

Once you have established that the script is working as expected, duplicate the request and drag it inside the “Assignment #1” collection and put it in the “API requests” folder. Ensure the name of the request remains the same.

Task 3

Add to the request “Create a new order” a script that parses the JSON response body and sets a Postman variable named orderId with the id of the order that was just created.

Once you have established that the script is working as expected, duplicate the request and drag it inside the “Assignment #1” collection and put it in the “API requests” folder. Ensure the name of the request remains the same.