How to check whether Postman Response is matching the value from a set of data

I have a field which only accepts data from below Set:
[‘CRDTCD’,‘STDTID’,‘WRKID’,‘DLIC’,‘MLID’,‘UPAS’,‘RAID’]. Values other than these should not be processed. How can I check if the response is one of these values?

Hello @amitesh1505 , you can use “to.be.oneOf” method, please refer this post for more details :slight_smile:

3 Likes

Thank you. It worked for me.

1 Like