# Help need with validating response that it is a string and contains a value

**URL:** <https://community.postman.com/t/help-need-with-validating-response-that-it-is-a-string-and-contains-a-value/24254>\
**Category:** Help Hub\
**Created:** [May 29, 2021, 3:16pm UTC](https://community.postman.com/t/help-need-with-validating-response-that-it-is-a-string-and-contains-a-value/24254 "2021-05-29T15:16:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 30, 2021, 1:43am UTC](https://community.postman.com/t/help-need-with-validating-response-that-it-is-a-string-and-contains-a-value/24254/2 "2021-05-30T01:43:26Z")

</div>

@KKKK1947 Welcome the community 🥳

Kindly refer the similar post [here](https://community.postman.com/t/validate-a-parameter-value-that-is-present-in-a-list/13869/2).

You need to use to.be.oneOf([“Pass”, “Fail”, “No result”, “Error”, “On hold”])

---

_[View the full topic](https://community.postman.com/t/help-need-with-validating-response-that-it-is-a-string-and-contains-a-value/24254)._
