Skip to content

Postman test result error issue #1042

Discussion options

You must be logged in to vote

@mansiruhil13 The error AssertionError indicates that the expected API key in your Postman collection's authorization settings was not found, likely due to a missing or improperly set API key.

Try the below steps to resolve:

-> Open Postman.
-> Find the collection where you want to set the API key.
-> Click on the collection name to open its settings.
-> Go to the Authorization tab within the collection settings.
-> In the Type dropdown menu, select API Key.
-> In the Key field, enter the name of the API key as required by your API (e.g., apikey).
-> In the Value field, enter the API key value (e.g., postmanrulz).
-> Under Add to, select Header (if required by your API) to ensure the key …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AKSHITHA-CHILUKA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants