Day 14 - Getting an error in the test

Hereā€™s an outline with best practices for making your inquiry.

My question:
Iā€™ve set the OAuth 2.0 in the collection - request were sucessful but still Iā€™m getting an error in the test though body is looking correct

Details (like screenshots):



How I found the problem:
During submitting my answer to the postman

Iā€™ve already tried:
Searching forum

I wouldnā€™t normally comment on these ā€œtrainingā€ exercises, as usually itā€™s just case of going back over the instructions and ensuring you have followed them to the letter. Telling you the answers sort of defeats the main purpose of training.

However, it would appear that the test is looking for a folder called OAuth, where it looks like you may have set the authorization at the collection level instead. Therefore, the line ā€œlet oauthfolderā€ is probably returning a blank, and the test is correctly reporting ā€œundefinedā€.

2 Likes

Awesome, that was exactly my problem. Turns out it helps to read the documentation thoroughly :sweat_smile: