# Run a test in another collection?

**URL:** <https://community.postman.com/t/run-a-test-in-another-collection/36193>\
**Category:** Help Hub\
**Tags:** collections, testing\
**Created:** [June 14, 2022, 10:35am UTC](https://community.postman.com/t/run-a-test-in-another-collection/36193 "2022-06-14T10:35:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben87](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/ben87/32/12291_2.png) [@Ben87](https://community.postman.com/u/Ben87)\
**Post date:** [June 14, 2022, 10:35am UTC](https://community.postman.com/t/run-a-test-in-another-collection/36193/1 "2022-06-14T10:35:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 14, 2022, 11:57am UTC](https://community.postman.com/t/run-a-test-in-another-collection/36193/2 "2022-06-14T11:57:52Z")

</div>

Hi @Ben87

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

> **[Building request workflows | Postman Learning Center](https://learning.postman.com/docs/running-collections/building-workflows/#setnextrequest-scope-is-limited-to-the-collection)**
>
> Building request workflows: documentation for Postman, the collaboration platform for API development. Create better APIs—faster.

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

---

<div class="post-metadata">

**Author:** ![Ben87](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/ben87/32/12291_2.png) [@Ben87](https://community.postman.com/u/Ben87)\
**Post date:** [June 14, 2022, 3:13pm UTC](https://community.postman.com/t/run-a-test-in-another-collection/36193/3 "2022-06-14T15:13:53Z")

</div>

Could be possible I guess but I found another solution.

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