DDimanlig
11 years agoOccasional Contributor
Script assertion using testrunner
I've read a few posts regarding the use of script assertions with the testrunner. I thought the below command to get a property value would work:
However, I get this error when I use the testrunner: [No such property: testRunner for class: Script1]
Do I need a particular import? I've tried the following imports:
import com.eviware.soapui.model.testsuite.TestRunner.*
import com.eviware.soapui.model.testsuite.*
import com.eviware.soapui.model.*
I'm currently using SoapUI Pro 4.6.4
def expected = testRunner.testCase.getPropertyValue("suiteNumber")
However, I get this error when I use the testrunner: [No such property: testRunner for class: Script1]
Do I need a particular import? I've tried the following imports:
import com.eviware.soapui.model.testsuite.TestRunner.*
import com.eviware.soapui.model.testsuite.*
import com.eviware.soapui.model.*
I'm currently using SoapUI Pro 4.6.4