Skip to content

Instantly share code, notes, and snippets.

@ezy
Last active September 26, 2019 22:49
Show Gist options
  • Save ezy/c70a5f341cb03cac9f57e43228a9b6d9 to your computer and use it in GitHub Desktop.
Save ezy/c70a5f341cb03cac9f57e43228a9b6d9 to your computer and use it in GitHub Desktop.
Postman set local environent variable
// set in Tests portion of request settings
let jsonData = pm.response.json();
pm.environment.set('token', jsonData.auth_token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment