It would be beneficial if you could incorporate additional operations into the Conditionals section, akin to those available in the Python programming language.
Some commonly needed use cases include comparing status codes or the lengths of response bodies, such as {check.response.status_code} >= 300 or length({base.response.body}) > length({check.response.body}).
Suppose I have defined a list of intriguing strings/regex patterns in the defined section, as shown below.
define:
message =
"Message\":\"Invalid web service call",
"Exception of type",
"Server Error in '",
"Server Error in Application"
I desire the capability to perform the conditional in or contains operation, such as {check.response.body} contains {message} or {message} in {check.response.body}
It would be beneficial if you could incorporate additional operations into the
Conditionals
section, akin to those available in the Python programming language.Some commonly needed use cases include comparing status codes or the lengths of response bodies, such as
{check.response.status_code} >= 300
orlength({base.response.body}) > length({check.response.body})
.Suppose I have defined a list of intriguing strings/regex patterns in the defined section, as shown below.
I desire the capability to perform the conditional
in
orcontains
operation, such as{check.response.body} contains {message}
or{message} in {check.response.body}