# Postman test script to check for exact key values in response

**URL:** <https://community.postman.com/t/postman-test-script-to-check-for-exact-key-values-in-response/41187>\
**Category:** Help Hub\
**Tags:** automation\
**Created:** [November 17, 2022, 1:13am UTC](https://community.postman.com/t/postman-test-script-to-check-for-exact-key-values-in-response/41187 "2022-11-17T01:13:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![descent-module-geo14](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@descent-module-geo14](https://community.postman.com/u/descent-module-geo14)\
**Post date:** [November 17, 2022, 1:13am UTC](https://community.postman.com/t/postman-test-script-to-check-for-exact-key-values-in-response/41187/1 "2022-11-17T01:13:44Z")

</div>

Hello, i am creating a user to an api using 2 key-values. how do i write a postman test script to check if the created account values EXACTLY MATCHES the response? and secondly right now i am manually inputting the values i use in creating the user in the test script. How do i script it to automatically pick any value inputted in the body to exactly match the response

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [November 17, 2022, 10:46am UTC](https://community.postman.com/t/postman-test-script-to-check-for-exact-key-values-in-response/41187/2 "2022-11-17T10:46:22Z")

</div>

This is covered in the Learning Centre.

[Postman Galaxy Training | Postman API Network](https://www.postman.com/postman/workspace/postman-galaxy-training/overview)

Run through the “APIs 101 Training”, then the “Testing and Automation Training” course.

Then if you are still unsure, please post what you have tried, and we may be able to guide you.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [September 30, 2023, 8:26am UTC](https://community.postman.com/t/postman-test-script-to-check-for-exact-key-values-in-response/41187/3 "2023-09-30T08:26:01Z")

</div>

Closed on September 30, 2023, 8:26am UTC


