ReadyApi has the ‘Run Test Case’ step, which will run one test case from within another test case, with the option to bring back data.
I’m looking for a similar action in the Postman client, but can’t find anything, so here I am asking: Is there a run collection function in Postman?
A little more detail.
On my team there are several non-technical tester who need to run some API script manually. I’ve taught them to click the 3 dots and select Run Collection.
Most of our tests require a testuser to be logged in with a session id, so every single test has to start with the same 2 requests:
POST Validate User (yields a temp token used in the next request)
POST login info (yields a session id)
I want to put these 2 requests into their own collection
Have the collection return the session id and save it to a global variable
The use this var for the manually started ad-hoc tests.
I’ve been looking at the postman.setNextRequest(‘test step name’); hoping I could replace the test step name with a link to the shared collection. That doesn’t seem to be the case.