# Troubleshooting API test automation assignment

**URL:** <https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812>\
**Category:** Help Hub\
**Tags:** tests, json\
**Created:** [August 21, 2025, 2:01am UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812 "2025-08-21T02:01:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gharatmihir21](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@gharatmihir21](https://community.postman.com/u/gharatmihir21)\
**Post date:** [August 21, 2025, 2:01am UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812/1 "2025-08-21T02:01:07Z")

</div>

Your submission for the **API Test Automation** badge failed one or more of the tests.

Please investigate and fix the issues listed below:

Check Assignment 1 - check script: expected ‘’ to include ‘pm.test’

Once you fixed the issues, save all changes and submit again, in order to claim your badge.

Tests are running, still its giving the above error

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [August 21, 2025, 8:43am UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812/2 "2025-08-21T08:43:25Z")

</div>

It’s tricky for anyone to help out without seeing your collection—or at least what you’ve got for Assignment 1.

The error message is actually pointing out what’s wrong:  
Assignment 1 is supposed to include some tests, but it sounds like yours doesn’t.

You’ll need to add a pm.test function with your assertion in the Postman response script.

---

<div class="post-metadata">

**Author:** ![oleksandrmoldovan](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@oleksandrmoldovan](https://community.postman.com/u/oleksandrmoldovan)\
**Post date:** [September 4, 2025, 9:10pm UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812/3 "2025-09-04T21:10:01Z")

</div>

## Hello Mike, maybe you can help me with this

Instructions for Assignment #1

1. **Get the challenge:** Fork the parent collection to your own public workspace.

2. **Read the instructions:** You will find the tasks you need to complete below.

3. **Verify your solution:** Select the second folder `Check your solution` and follow the instructions in the documentation to validate your solution.

## 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.

 ![Screenshot 2025-09-04 at 23.07.28](https://us1.discourse-cdn.com/getpostman/original/3X/8/d/8db115129a5bf4172c00735207ca8bf9cfcabe7e.jpeg)

 ![Screenshot 2025-09-04 at 23.09.02](https://us1.discourse-cdn.com/getpostman/original/3X/a/d/adbee3ff381d658a1e491a91101e0e52bb7c8cdf.png)

 ![Screenshot 2025-09-04 at 23.07.44](https://us1.discourse-cdn.com/getpostman/original/3X/3/d/3dd61bfa1a9763b558b6f6d494322e9e87f7b938.png)

 ![Screenshot 2025-09-04 at 23.07.40](https://us1.discourse-cdn.com/getpostman/original/3X/2/4/245584121ffb2ec7528b3cd0359d7bc1e9e14f06.png)

---

<div class="post-metadata">

**Author:** ![oleksandrmoldovan](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@oleksandrmoldovan](https://community.postman.com/u/oleksandrmoldovan)\
**Post date:** [September 4, 2025, 9:13pm UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812/4 "2025-09-04T21:13:34Z")

</div>

@vdespa Perhaps you can assist with this as well.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [September 4, 2025, 9:33pm UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812/5 "2025-09-04T21:33:44Z")

</div>

Hey @oleksandrmoldovan

I’m looking closer at these issues and will be able to confirm things tomorrow.

In the meantime, this is what I have in my scripts for those 2 requests, could you trying changing yours and submitting again please?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/7/47182f5a970ef9473a61ce3810ae90ea8766b560.png)

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/d/b/db04800570b31e7a678bfe429204c134f4aac30e.png)

Could you also confirm that each individual assignment is passing, when using the `Verify your work` request?

---

<div class="post-metadata">

**Author:** ![oleksandrmoldovan](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@oleksandrmoldovan](https://community.postman.com/u/oleksandrmoldovan)\
**Post date:** [September 5, 2025, 8:08am UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812/6 "2025-09-05T08:08:39Z")

</div>

Yes, it’s passing. All tests for all assignments

I can send screenshots if necessary

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [September 5, 2025, 8:44am UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812/7 "2025-09-05T08:44:49Z")

</div>

I made some changes, could you submit again please?

---

<div class="post-metadata">

**Author:** ![oleksandrmoldovan](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@oleksandrmoldovan](https://community.postman.com/u/oleksandrmoldovan)\
**Post date:** [September 5, 2025, 9:03am UTC](https://community.postman.com/t/troubleshooting-api-test-automation-assignment/83812/8 "2025-09-05T09:03:56Z")

</div>

Submitted successfully. Thank you very much for your support.🫰
