Skip to content

Instantly share code, notes, and snippets.

@chrisjrex
Created March 4, 2020 10:16
Show Gist options
  • Select an option

  • Save chrisjrex/b5ee8441278c8dd29d13dd3d6c3c7d64 to your computer and use it in GitHub Desktop.

Select an option

Save chrisjrex/b5ee8441278c8dd29d13dd3d6c3c7d64 to your computer and use it in GitHub Desktop.
Using tests to set postman variables from responses
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