My jmeter
application sends a request and expects the following json
in the response.
{"external-profile":{"email":"myemail@gmail.com","firstname":"fn","lastname":"ln","portfolio":{"field1":[],"field2":[],"field3":[]}}}
field1
, field2
and field3
could be empty arrays or might have some value. Is there a way to check that the message has field1,2,3
but ignore the value?
I tried doing this but it doesn't work - {"external-profile":{"email":"myemail@gmail.com","firstname":"fn","lastname":"ln","portfolio":{"field1":[\.*],"field2":[\.*],"field3":[\.*]}}}
. To be honest, I don't know if this is the right way to specify regular expressions in jmeter
.