[Day 06 API Test] TypeError: Cannot read properties of undefined (reading 'find')

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question:
I get an error when learning. Does anyone help me with this?

Details (like screenshots):

How I found the problem:

I’ve already tried:

You haven’t expanded the “API tests” folder, but I suspect its the spelling of one of the requests in that folder.

Therefore the “find” function in the test is failing.

Thank you for your information. I have resolved this error

Hi @chi.pham , Can you help me to resolve this error ?

@vynk2310

Is it just the “Tests added correctly” that is failing?

If so, this is usually because the name of the requests in the API tests folder aren’t exactly as detailed in the documentation.

Check that first, otherwise, please post a screenshot of the “API tests” folder.

Hi @michaelderekjones , here’s my screenshot. I think the name of the request is correct :))

So you are having issues with Day 9. (Not day 06 as the main thread).

I suspect its the second “find” in the “variables set correctly” test.

All this is doing is returning the whole of the the code in the tests tab as a string.

Do you have any code in the tests tab for “get random user”?

If you have no code, then the find will error as it will be unable to find the “test” event.

It’s supposed to have code related to the setting of collection variables to be used in the Echo request.

It is the [Day 06] link Postman
Hope you can find the different

@chi.pham

Sorry, my response was to the latest message from @vynk2310, not your original question related to day 6.