mardi 24 septembre 2019

Can't reuse a dynamic global variable in a new query (Postman, JavaScript)

Could anybody help me, please? I have 2 post queries in postman (JavaScript). during the 1st one I want to create a global variable (take id from the body response), store it as a global variable, send it as a parameter in the 2nd query and test that this id was sent correctly (id from the response body of the 2nd query = global variable). And test during the 2nd request failed because during this request I somehow send a new id which of course doesn't equal to the id from the 1st request (which was stored in the global variable). Below are the screenshots with comments. Thank you in advance! enter image description here enter image description here enter image description here enter image description here enter image description here

Aucun commentaire:

Enregistrer un commentaire