# Response Validation against a previous response

**URL:** <https://community.postman.com/t/response-validation-against-a-previous-response/28148>\
**Category:** Help Hub\
**Created:** [September 25, 2021, 9:12pm UTC](https://community.postman.com/t/response-validation-against-a-previous-response/28148 "2021-09-25T21:12:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oberryt12](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/oberryt12/32/8511_2.png) [@oberryt12](https://community.postman.com/u/oberryt12)\
**Post date:** [September 25, 2021, 9:12pm UTC](https://community.postman.com/t/response-validation-against-a-previous-response/28148/1 "2021-09-25T21:12:51Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_: Is there a way to store a Json Response to a variable so that I may run the request again in the future to verify that the response does not change.

_Details (like screenshots)_:

Currently, I use SoapUI for API regression testing. The reason I use SoupUI for Regression testing is because it is easy to save xpath or json responses in the request, run the request later and verify that the response has not changed.

I have figured out how to parse responses for individual element response values but we have so many elements in our response and so many requests in our Regression suite that going through each one would be time consuming.

Basically, I would like to run a request in postman. Save the Response. Deploy changes to our software. And then run the request again and validate that the response did not change.

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [September 26, 2021, 1:57am UTC](https://community.postman.com/t/response-validation-against-a-previous-response/28148/2 "2021-09-26T01:57:37Z")

</div>

Hi @oberryt12 👋

Yes, its possible. You just need to save the entire response is it?

There are different types of [variables](https://learning.postman.com/docs/sending-requests/variables/) in Postman. So you can store the entire response or as you mentioned above parsing, you can store particular element to chain the requests as well.

Based on the info you have provided above,

1. Refer the similar [post](https://community.postman.com/t/save-response-to-global-variable-for-use-with-other-queries/14347/2) in the forum.
2. Now you have response value
3. When you hit the requests again, add a assertion to validate the older response is matching the new response

Hope this helps 😊
