# How to Use an Existing Example Response in a Test?

**URL:** <https://community.postman.com/t/how-to-use-an-existing-example-response-in-a-test/25880>\
**Category:** Help Hub\
**Tags:** tests, variables, collections\
**Created:** [July 19, 2021, 8:14am UTC](https://community.postman.com/t/how-to-use-an-existing-example-response-in-a-test/25880 "2021-07-19T08:14:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![localhorst](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@localhorst](https://community.postman.com/u/localhorst)\
**Post date:** [July 20, 2021, 3:12pm UTC](https://community.postman.com/t/how-to-use-an-existing-example-response-in-a-test/25880/2 "2021-07-20T15:12:15Z")

</div>

Going to answer that myself:

It could be possible, to use the Postman API, to send a request to the collection and then do some JS filter magic. Sounds like a bad idea overall.

What I ended up with is JSON Schema Validation. This appears to be the cleanest solution. The saved responses/Examples help to create JSON Schema with this tool [https://www.jsonschema.net/](https://www.jsonschema.net/), then adjust the schema an then use AJV as described here: [Checking a schema with tv4 - #2 by dannydainton](https://community.postman.com/t/checking-a-schema-with-tv4/7575/2)

JSON Schema makes a lot of sense and adds value to the API development. But it’s also a buttload of work.

---

_[View the full topic](https://community.postman.com/t/how-to-use-an-existing-example-response-in-a-test/25880)._
