I'm using DevTest workstation.
I'm trying to create a virtual service with 2 responses. The request contains a 'id' attribute. Here is my requirement:
if the id is numeric return Response1 (i.e. 200 OK). Else if the id is a string return Response2 (i.e 400 Bad Request)
I tried to parse the request parameter using Match Script. But, couldn't figure out how to select the Response1 or Response2 in Match Script.
Can someone please help?
It is HTTP request returning a JSON.
Version - DevTest v9.0