How to call next step in VSM or LISA Test using grovy ? example.. I have grovy script step where certain if conditions are defined.. now based on true or false in the if I want to call next step in execution..
do three assertions.
if a then goto step x
if b then goto step y
if c then goto step q
or, make the complex decision in groovy, and then make the simpler decision using the assets
you set return values from the step, and/or use properties, and then use assertions to adjust the logic flow of the VSM.
I do this in my VSM to decide if I need to listen with HTTP or HTTPS, or do user authentication, or convert the user supplied schema file to the required api dependent format.
sdetweil2 thanks.. yeah I use this way in some of my models .
but the problem is, I cant do all the time with assertion is when I need to have multiple conditions satisfied..
example i need to compare three variables values and based on that I need to call different step. what I usually see in assertion is condition between two properties ..
Retrieving data ...