Unabel to compare the collection variable to json data resp

How to comapare the variable defined in collection variable to json response


AssertionError: expected ‘663276f4a86f8f74dcd48ba4’ to deeply equal undefined

Hi @research-astronomer4. Welcome to the Postman Community!

In the second screenshot, you have pm.collectionVariables.get("{{productId}}"). It should instead be pm.collectionVariables.get("productId") instead. The curly braces are only used when calling the variables directly in your workbench input fields.

1 Like

Thanks
Could u please explian what work bench u r talking about
It will help me