This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/ws-contains-string.html
This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/ws-contains-string.html
I see this similiar to assertion.
WS.containsString(resObj, 'email@katalon.com', false)
Could elaborate more if the response is in array list, does it support?
Example
[
{
“name”:“John”,
“age”:30,
“cars”:[ “Fiat”, “suzuki”, “honda” ]
},
{
“name”:“Peter”,
“age”:30,
“cars”:[ “BMW”, “Fiat” ]
}
]
How to make sure response contains name Peter and cars only BMW, fiat under its own json?
Or how to make sure response does not contains name Mary?
Hello @Gan_Jyi_Yng
Please see the document of [WS] Verify Element Property Value for verifying the response element.
Jass