Forum Discussion
Kathryn_O_Malle
16 years agoContributor
Hi,
I've tried the following lines of code in a Groovy Script step:
[tt:1af40w9t]def slaveTestCase = testCase.testSuite.project.getTestSuiteByName["TS:TEST_Slave"].testCases["TC:TEST_Called_This_TestCase_Slave"]
def runner = slaveTestCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), flase)[/tt:1af40w9t]
When I execute this groovyscript teststep I get the following error message:
[tt:1af40w9t]"groovy.lang.MissingPropertyException: No such property: testCase for class: Script9"[/tt:1af40w9t]
I've also tried the following variation:
[tt:1af40w9t]def slaveTestCase = testRunner.testCase.testSuite.project.getTestSuiteByName["TS:TEST_Slave"].testCases["TC:TEST_Called_This_TestCase_Slave"]
def runner = slaveTestCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), flase)[/tt:1af40w9t]
When I execute this groovyscript teststep I get the following error message:
[tt:1af40w9t]"groovy.lang.MissingPropertyException: No such property: getTestSuiteByName for class: com.eviware.soapui.impl.wsdl.WsdlProjectPro"...[/tt:1af40w9t]
I'm pushing the boundaries of my soapui knowledge here so hopefully I'm making a beginners mistake...
Thanks
I've tried the following lines of code in a Groovy Script step:
[tt:1af40w9t]def slaveTestCase = testCase.testSuite.project.getTestSuiteByName["TS:TEST_Slave"].testCases["TC:TEST_Called_This_TestCase_Slave"]
def runner = slaveTestCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), flase)[/tt:1af40w9t]
When I execute this groovyscript teststep I get the following error message:
[tt:1af40w9t]"groovy.lang.MissingPropertyException: No such property: testCase for class: Script9"[/tt:1af40w9t]
I've also tried the following variation:
[tt:1af40w9t]def slaveTestCase = testRunner.testCase.testSuite.project.getTestSuiteByName["TS:TEST_Slave"].testCases["TC:TEST_Called_This_TestCase_Slave"]
def runner = slaveTestCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), flase)[/tt:1af40w9t]
When I execute this groovyscript teststep I get the following error message:
[tt:1af40w9t]"groovy.lang.MissingPropertyException: No such property: getTestSuiteByName for class: com.eviware.soapui.impl.wsdl.WsdlProjectPro"...[/tt:1af40w9t]
I'm pushing the boundaries of my soapui knowledge here so hopefully I'm making a beginners mistake...
Thanks