postman collection variables.
kelvinbush opened this issue · 2 comments
kelvinbush commented
The postman collection variables are not being updated.
The test scripts are trying to update the environment variables.
This should work: var jsonData = JSON.parse(responseBody); pm.collectionVariables.set("accessToken", jsonData.accessToken); pm.collectionVariables.set("refreshToken", jsonData.refreshToken); console.log(jsonData)
tomanagle commented
Do you have an environment set?
kelvinbush commented
No I did not, that's why I had the variables scoped to the collection.
Thanks for the tutorial it is a great resource.