This topic describes how to use a Groovy script to find out if your test case is running as a load test.
Where to use
There are several ways to run the script below:
The following code demonstrates how to determine if a test case is running in the command line or as a load test:
if( com.eviware.soapui.SoapUI.isCommandLine() )
log.info "This code is executed by the command line in SoapUI"
// Check whether the test runs as a load test.
if( context.LoadTestContext != null )
log.info "This code is executed from a load test"