Postman test result error issue #1042
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@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. |
Beta Was this translation helpful? Give feedback.
@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 …