Random Inclusion of Test Steps?
Hi All,
I'm using SoapUI to emulate a process that moves an event through a series of states: AK->ER->AR->AV. So I have a set of test steps that put it in each of those states, with delays between each. But now I'd like to add a test case that emulates it being interrupted in the middle of that process - essentially, I'd like to progress through between 1-4 of those states, stop, and do something else. I could clone 4 different test cases and just disable steps, but I wondered if there was some less messy way to do it. Like conditionally running test steps based on the value of a variable or something?
Alternately, since I've tested the progression elsewhere, and what I'm interested in testing here is interruption from a specific state, I could just set the state once, to a random value from the list (AK, ER, AR, AV), and then do the interruption. But I don't know how to set a variable to a random value from a list either...