# A question of creating tests and then re-use them

**URL:** <https://community.postman.com/t/a-question-of-creating-tests-and-then-re-use-them/1091>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [February 28, 2018, 11:49pm UTC](https://community.postman.com/t/a-question-of-creating-tests-and-then-re-use-them/1091 "2018-02-28T23:49:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadonoso](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/fadonoso/32/387_2.png) [@fadonoso](https://community.postman.com/u/fadonoso)\
**Post date:** [February 28, 2018, 11:49pm UTC](https://community.postman.com/t/a-question-of-creating-tests-and-then-re-use-them/1091/1 "2018-02-28T23:49:55Z")

</div>

Hi everyone,

I´m new with Postman and this is my first post so maybe this question is already addressed and has a simple solution.

I’m developing my Rest Api with API Gateway. In order to test it I export the swagger file with compatibility with Postman, then I create the test within the collection and lastly I use the runner to test them all. So far so good, but when I create a new version of my API in Api Gateway and then export it to Postman I have to re-write every test. So my questions: is there any way to reuse the test that I already wrote within the new version of the api?

Felipe

---

<div class="post-metadata">

**Author:** ![shamasis](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/shamasis/32/53_2.png) [@shamasis](https://community.postman.com/u/shamasis)\
**Post date:** [March 2, 2018, 8:44am UTC](https://community.postman.com/t/a-question-of-creating-tests-and-then-re-use-them/1091/2 "2018-03-02T08:44:54Z")

</div>

You could write the tests within a folder or collection. That would execute them for all request added inside it.

---

<div class="post-metadata">

**Author:** ![fadonoso](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/fadonoso/32/387_2.png) [@fadonoso](https://community.postman.com/u/fadonoso)\
**Post date:** [March 2, 2018, 5:24pm UTC](https://community.postman.com/t/a-question-of-creating-tests-and-then-re-use-them/1091/3 "2018-03-02T17:24:55Z")

</div>

Thanks @shamasis, you help me to understand a solution. I can save all my tests in folder or collection and then add or change whatever is new when I get the new API version. It is a bit manually but it has sense.
