Forum Discussion

mohan1's avatar
mohan1
Occasional Contributor
10 years ago

(SoapUI freeVersion) For loop in groovy.

Help please.

 

(SoapUI freeVersion) For loop in groovy to make a data loop. But only one value ( last cell value) is taken.

 

for( x=1 ; x<sizeR ; x++)
 {
 bucket=sheet1.getCell(1,x).getContents()
 log.info bucket 
 propTestStep.setPropertyValue("bucket",bucket) 
 }

  • Found Solution

     

    Adding below step worked out. Simple Solution. I thought the loop automatically sends all values to properties. Cheers!

     

    testRunner.runTestStepByName("teststepname");

     

  • mohan1's avatar
    mohan1
    Occasional Contributor

    Found Solution

     

    Adding below step worked out. Simple Solution. I thought the loop automatically sends all values to properties. Cheers!

     

    testRunner.runTestStepByName("teststepname");