17 years ago
storing responses into variables
i'm pretty new to this soapui scripting and i'm trying to figure how to store a certain part of a response in a variable to verify something else.
for instance:
if the response returns a "6" as part of a response, i want to store that "6" into a variable (let's call it "scale"). then i want to use that variable to determine if another variable "color" is "green" or "red" based upon a predefined metric.
so basically psuedocode would look something like this:
if "scale" > 5
"color" = "green"
else
"color" = "red"
can this be done through soap?
for instance:
if the response returns a "6" as part of a response, i want to store that "6" into a variable (let's call it "scale"). then i want to use that variable to determine if another variable "color" is "green" or "red" based upon a predefined metric.
so basically psuedocode would look something like this:
if "scale" > 5
"color" = "green"
else
"color" = "red"
can this be done through soap?