Skip to content

Instantly share code, notes, and snippets.

@daipresents
Created March 24, 2017 03:25
Show Gist options
  • Save daipresents/fa87f871f6ec6a3bd83bdc101c40e7e3 to your computer and use it in GitHub Desktop.
Save daipresents/fa87f871f6ec6a3bd83bdc101c40e7e3 to your computer and use it in GitHub Desktop.
Postman example
var users = environment.users.split(',')
var counter = Number(environment.counter);
postman.setEnvironmentVariable("user", users[counter]);
tests["counter:" + counter] = true;
var counter = Number(environment.counter);
postman.setEnvironmentVariable("counter", counter + 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment