Keeping your API key safe by putting a placeholder (DUMMY) in Initial Value (it is importent for the valadition of the test ) and real key in Current Value.(it is importent for the valadition of the test )
It works locally.
But the automated test fails due to authentication.
any idea how to bypass this , if so please imforme me
Is this for the API Test Automation training course?
From what I know about that course, it’s an external Postman course. I would always remove any value that you have in the Initial Value field for any sensitive data like an API Key.
The solution isn’t checked against what you have on your machine, it’s checked against a set of tests that are part of a different Collection. It’s checking that all the instructions were followed correctly and applied to the Collection/Folder/Requests.
Checking that the requests have the correct scripts is something that I’ve seen fail for people in the past.
As part of all the training, you would have received an email with all the test failures so it’s best to check that for any specific issues relating to your submission.
Thank you for your response. It appears that the issue was due to a separate mistake unrelated to authentication. I’ve since identified and resolved it, and everything is working properly now. My apologies for any inconvenience and for taking up your time