In Soapui, add Load Test to the test suite. For this load test step, select the strategy as "Script"
The following is one of the step in my script-
1.Get current time in ms and set it as property value (), i have tried setting the property at global level, test suite level, test case level but it doesnt work from inside load test script window.
GET works(but only with context.expand) but SET doesnt work.
def startTime = System.currentTimeMillis();
def timeIs = startTime.toString()
def propValue = testRunner.testCase.testSuite.setPropertyValue( "currentTime", timeIs )
def propVal = testRunner.testCase.testSuite.getPropertyValue("currentTime")
log.info(propVal)
Error- No such property-testRunner
Please suggest if there is some other method to set property in load test.