luca84
9 years agoNew Contributor
I whould like to run a test with 10 soap request. I need a parameter to change on each request.
Goodmorning ,
I need to run a test with 10 soap request. I need a parameter to change on each request.
I whould like to know the easiest way to do that.
Thanks
Luca
Hi rupert anderson,
thanks for your reply :)
I found a solution this morning (using groovy script), but I'll have a look at your article and blog :)
I created a property step called Prop and a property called Incremento with value 1;
then I created a Groovy step with this script :
def Incremento = testRunner.testCase.getTestStepByName("Prop").getPropertyValue("Incremento");//context.expand( '${#TestCase#Incremento}' ); Incremento = Incremento.toInteger() + 1; //log.info(" prova "+Incremento); if (Incremento <= 10) { testRunner.testCase.getTestStepByName("Prop").setPropertyValue( "Incremento", Incremento.toString() ); log.info "Incremento: "+Incremento; testRunner.gotoStepByName("insert - Request 1"); }
and I've created the insert - Request 1 step, in witch I use property Incremento like this : SOAP UI TEST->${Prop#Incremento}.
Thanks to evryone!