Kevin_Slade
17 years agoContributor
SoapUI Pro 2.0.2 gotoStepByName is apparently not executed
The code fragment below is executing both log.info statements.
The loop count is incremented in the SaveTime1 step. The loop_cnt has a value of 1 as shown by the Groovy log. What am I dooing wrong. I am using SoapUI 2.0.2 Pro
if ( ( loop_cnt < 101 ) ) {
log.info( "gotoStepByName( SaveTime1 )");
testRunner.gotoStepByName( "SaveTime1")
log.info( "gotoStepbyName failed");
} else {
log.info( "loop_cnt terminated = [" + loop_cnt + "]" );
}
log.info( "fell through to here");
Groovy log
Fri Mar 07 12:12:08 NZDT 2008:INFO:loopCnt = [1]
Fri Mar 07 12:12:08 NZDT 2008:INFO:loop_cnt = [1]
Fri Mar 07 12:12:08 NZDT 2008:INFO:gotoStepByName( SaveTime1 )
Fri Mar 07 12:12:08 NZDT 2008:INFO:gotoStepbyName failed
Fri Mar 07 12:12:08 NZDT 2008:INFO:fell through to here
Fri Mar 07 12:12:08 NZDT 2008:INFO:repeatCnt = [1]
The loop count is incremented in the SaveTime1 step. The loop_cnt has a value of 1 as shown by the Groovy log. What am I dooing wrong. I am using SoapUI 2.0.2 Pro
if ( ( loop_cnt < 101 ) ) {
log.info( "gotoStepByName( SaveTime1 )");
testRunner.gotoStepByName( "SaveTime1")
log.info( "gotoStepbyName failed");
} else {
log.info( "loop_cnt terminated = [" + loop_cnt + "]" );
}
log.info( "fell through to here");
Groovy log
Fri Mar 07 12:12:08 NZDT 2008:INFO:loopCnt = [1]
Fri Mar 07 12:12:08 NZDT 2008:INFO:loop_cnt = [1]
Fri Mar 07 12:12:08 NZDT 2008:INFO:gotoStepByName( SaveTime1 )
Fri Mar 07 12:12:08 NZDT 2008:INFO:gotoStepbyName failed
Fri Mar 07 12:12:08 NZDT 2008:INFO:fell through to here
Fri Mar 07 12:12:08 NZDT 2008:INFO:repeatCnt = [1]