Hi Ali,
Try the following:
import com.eviware.soapui.impl.wsdl.loadtest.data.LoadTestStatistics.Statistic
// this only works when running under a LoadTest
if( context.LoadTestContext == null )
return
def ltr = context.LoadTestContext.getLoadTestRunner()
def stats = ltr.loadTest.statisticsModel
log.info( "Thread Count:" + ltr.runningThreadCount )
log.info( "TPS for step 0: " + stats.getStatistic( 0, Statistic.TPS ))
You'll need to disable disabling if the groovy log during LoadTests (in the UI Settings Tab) to see any output during LoadTests..
Hope this helps!
regards,
/Ole
eviware.com