Ok I got it down but you can't do this without Groovy... DataSource is annoying unless you use Excel where you only have the option box "Select if rows containing empty data should be skipped"
And the problem with DataGen and DataSource is they just want to keep running until you stop it.
OPTION 1 - If you're the only user of SoapUI then use the Excel and have A1 - A10> DataSrouce (with the checkbox mentioned above checked)
> TestStep (pointing to datasource)
> DataSourceLoop
OPTION 2 - DataGen & DataSource w/ Groovy> DataGen (set to 1-10)
> DataSource (groovy)
def numberDG = context.expand( '${DataGen#Number}' )
result["number"] = numberDG
> TestStep
> Groovy Script
def rawRequest = context.expand( 'your HTTP rawRequest value that is used' )
if (rawRequest == "10")
runner.cancel("End")
> DataSourceLoop
*only problem with that is it takes the runner.cancel as a failure - - Not sure how to stop/cancel gracefully
OPTION 3 - ALL GROOVY *which is the best since it works in the free version also> Property (with one field "value")
> Groovy "SetInterval"
testRunner.testCase.getTestStepByName("Properties").setPropertyValue( 'value' , '1' )
> TestStep (pointing to Property "value"
> Groovy "Loop"
def rawRequest = context.expand( 'your HTTP rawRequest value that is used' )
def maxVal = "11" as int
def value = context.expand( '${Properties#value}' ) as int
if ( value < maxVal)
{
String nv = value + 1
testRunner.testCase.getTestStepByName( "Properties" )setPropertyValue( "value", nv )
testRunner.gotoStepByName("getCustomerStatus")
}
So there are the options I found that you can do
Rob