# Two test cases are failed

**URL:** <https://community.postman.com/t/two-test-cases-are-failed/51270>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [September 1, 2023, 3:23pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270 "2023-09-01T15:23:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![descent-module-pil11](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/descent-module-pil11/32/25563_2.png) [@descent-module-pil11](https://community.postman.com/u/descent-module-pil11)\
**Post date:** [September 1, 2023, 3:23pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270/1 "2023-09-01T15:23:28Z")

</div>

Hello I am getting started with Postman and I really enjoying it so far but I’m struggling to know what is wrong with my API calls

 ![Screenshot from 2023-09-01 15-46-18](https://us1.discourse-cdn.com/getpostman/original/3X/4/3/430d58ba4fe532ea8de7357203dd4197ecb8eb9f.png)  
 ![Screenshot from 2023-09-01 16-42-22 (1)](https://us1.discourse-cdn.com/getpostman/original/3X/a/5/a58a1c7ca08bacb748dedfdc8e2a927871bd197a.png)  
 ![Screenshot from 2023-09-01 15-46-27](https://us1.discourse-cdn.com/getpostman/original/3X/6/4/6457ac3aaaff1bb207bc33a25c0068426e24efc5.png)

---

<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:** [September 1, 2023, 3:45pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270/2 "2023-09-01T15:45:48Z")

</div>

For the first failure, we need to see the “params” tab for the “get fictions book” request.

Undefined means it can’t read a variable. (Without seeing the test code for this course, I wouldn’t be able to tell you what its actually looking for).

The second failure appears to be matching the wrong request. I would recommend closing all of your tabs and ensuring any changes are saved and try again.

What training course is this please? Do you have a link?

---

<div class="post-metadata">

**Author:** ![descent-module-pil11](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/descent-module-pil11/32/25563_2.png) [@descent-module-pil11](https://community.postman.com/u/descent-module-pil11)\
**Post date:** [September 1, 2023, 3:59pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270/3 "2023-09-01T15:59:14Z")

</div>

thanks for your response the link to that training is [https://academy.postman.com/path/postman-api-fundamentals-student-expert/intro-to-apis-and-postman/953](https://academy.postman.com/path/postman-api-fundamentals-student-expert/intro-to-apis-and-postman/953)

also

 ![Screenshot from 2023-09-01 18-56-18](https://us1.discourse-cdn.com/getpostman/original/3X/2/8/28743841fffdb21875e42da1885c81897b68094a.png)

---

<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:** [September 1, 2023, 4:17pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270/4 "2023-09-01T16:17:22Z")

</div>

I don’t have access to those collections, however as those are the student expert courses, the general guidance is that these courses aren’t there to catch you out.

My recommendation would be to go back over the course details.

Issues can be as simple as a spelling mistake or an incorrect folder name.

In relation to your latest screenshot, the parameters look fine to me.

If you have a look at the skill check request. All of the tests are in the tests tab.

You should be able to dig into the JavaScript in here, and this usually gives you a better indicator of what the test is doing.

---

<div class="post-metadata">

**Author:** ![descent-module-pil11](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/descent-module-pil11/32/25563_2.png) [@descent-module-pil11](https://community.postman.com/u/descent-module-pil11)\
**Post date:** [September 1, 2023, 4:59pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270/5 "2023-09-01T16:59:46Z")

</div>

okay I am going to do my best thanks again for your response

---

<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:** [September 1, 2023, 5:17pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270/6 "2023-09-01T17:17:41Z")

</div>

So I just signed up for that course and have completed it.

As your last screenshot looks ok to me, I suspect the issue is that you have some unsaved pages.

This will cause the tests to fail as the change hasn’t been fully committed to the collection.

I had the same issue, I had 27 out of 28 passing tests and it was because one of the requests had unsaved changes.

Clicked on save and re-sent the collection test and its now passing. (I’ve even claimed the badge).

---

<div class="post-metadata">

**Author:** ![descent-module-pil11](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/descent-module-pil11/32/25563_2.png) [@descent-module-pil11](https://community.postman.com/u/descent-module-pil11)\
**Post date:** [September 1, 2023, 6:53pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270/7 "2023-09-01T18:53:41Z")

</div>

I checked all pages and all of them are saved so I guess, i am going to repeat the training from scratch again

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 16, 2023, 6:53pm UTC](https://community.postman.com/t/two-test-cases-are-failed/51270/8 "2023-10-16T18:53:57Z")

</div>

Closed on October 16, 2023, 6:53pm UTC

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.
