Thanks for yout time Dave and Aaronliu.
My previous code was contiously looping bcos variable aa is set to '0' when ever Groovy-loop is step is entred.
So I changed the code like ,
My test case contains
1.Soap request
2.Property
3.Propery transfer
4.Groovy loop
I defiened tht count as variabled and I modified the code
//def aa =0
targetStep = testRunner.testCase.getTestStepByName( "Properties-strorderID")
def i= targetStep.getPropertyValue("currentCount")
log.info("i is" + i)
def count= targetStep.getPropertyValue("maxcount")
while (i < count)
{
log.info("enetered loop")
testRunner.gotoStepByName("soap request")
sleep 10000
i++
log.info("now i is" + i)
targetStep.setPropertyValue("currentCount",i)
}
Ir-respective of my max count "Is called only twice", Wen I run the script alone its running properly, when I run the test case its looping only twice