Skip to main content
deleted 5 characters in body; edited tags
Source Link

Has anybody tried scripting json response assertions in CA LISA Tool. All I could find was string match where I was giving "key":" value" exactly to ensure the presence of that combination in my web service response. But sometimes, there nightmight be multiple same "key":" values" in my response and this may not be an ideal way to match. I

I am looking for some help with scripted assertions where I can check something like "key[1]":" value" matches.

Thanks

Has anybody tried scripting json response assertions in CA LISA Tool. All I could find was string match where I was giving "key":" value" exactly to ensure the presence of that combination in my web service response. But sometimes, there night be multiple same "key":" values" in my response and this may not be an ideal way to match. I am looking for some help with scripted assertions where I can check something like "key[1]":" value" matches.

Thanks

Has anybody tried scripting json response assertions in CA LISA Tool. All I could find was string match where I was giving "key":" value" exactly to ensure the presence of that combination in my web service response. But sometimes, there might be multiple same "key":" values" in my response and this may not be an ideal way to match.

I am looking for some help with scripted assertions where I can check something like "key[1]":" value" matches.

Source Link

JSON Assertions in CA LISA

Has anybody tried scripting json response assertions in CA LISA Tool. All I could find was string match where I was giving "key":" value" exactly to ensure the presence of that combination in my web service response. But sometimes, there night be multiple same "key":" values" in my response and this may not be an ideal way to match. I am looking for some help with scripted assertions where I can check something like "key[1]":" value" matches.

Thanks