Run a test in another collection?

Hello,

Is it possible to somehow run an test from another collection? I need something from another API, which is in a different collection.

I control my test order with postman.setNextRequest() and I want to navigate from api 1 to api 2 and then back.

Edit: Right now, I moved the second API in my collection as well but if it possible that I can keep it separate it would be very nice.

Thanks,
Ben

Hi @Ben87

I think this function is fairly limited in terms of scope.
The scope of postman.setNextRequest() can be found here;

Could you run the collection, save the output as a global and then run the second API call?

1 Like

Could be possible I guess but I found another solution.

I added that second API to my collection :slight_smile: The second Api is only a “helper” Api

1 Like