Created
March 4, 2020 10:16
-
-
Save chrisjrex/b5ee8441278c8dd29d13dd3d6c3c7d64 to your computer and use it in GitHub Desktop.
Using tests to set postman variables from responses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var jsonData = JSON.parse(responseBody); | |
| postman.setEnvironmentVariable("access_token", jsonData.access_token); | |
| postman.setEnvironmentVariable("refresh_token", jsonData.refresh_token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment