I am using the Postman version of batch applications to write tests against my Rest API. I am trying to manage the state between successive trials. To facilitate this, the Postman object, subject to Javascript testing, has methods for setting variables, but is not used for reading.
postman.setEnvironmentVariable("key", value );
Now I can read this value in the next call using the {{key}} structure, which sucks values ββfrom the current environment. BUT, this does not work in tests; it only works in the request enclosure.
So, is there anyway to read this material from the tests?
rest testing postman
chad Jan 28 '14 at 22:45 2014-01-28 22:45
source share