Forum Discussion
Kathryn_O_Malle
16 years agoContributor
Hi,
Many thanks for that, it worked!
It has generated a couple of extra questions on the topic...
When executing the groovy script teststep directly in SoapUI I can see log.info messages from the controlling groovy script itself, but I don't see any of the log.info messages from the slave test case. Is there a way to do this?
[I can see them when viewing the actual soapui.log file though...]
After some googling I've also had the following variation which I've now been able to get to work using the fix from M McDonald...
Option_Two
[tt:1deolyml]def testCase = testRunner.testCase.testSuite.project.getTestSuiteByName("TS:TEST_Slave").getTestCaseByName("TC:TEST_Called_This_TestCase_Slave")
def properties = new com.eviware.soapui.support.types.StringToObjectMap ()
def async = false
testCase.run (properties, async)[/tt:1deolyml]
I find Option_Two easier to read but...
Though with Option_Two I'm not clear on how to pass or retreive parameters from TC:TEST_Called_This_TestCase_Slave. Is there an online manual (API, etc) that I've missed so far that will help?
Many thanks...
Many thanks for that, it worked!
It has generated a couple of extra questions on the topic...
When executing the groovy script teststep directly in SoapUI I can see log.info messages from the controlling groovy script itself, but I don't see any of the log.info messages from the slave test case. Is there a way to do this?
[I can see them when viewing the actual soapui.log file though...]
After some googling I've also had the following variation which I've now been able to get to work using the fix from M McDonald...
Option_Two
[tt:1deolyml]def testCase = testRunner.testCase.testSuite.project.getTestSuiteByName("TS:TEST_Slave").getTestCaseByName("TC:TEST_Called_This_TestCase_Slave")
def properties = new com.eviware.soapui.support.types.StringToObjectMap ()
def async = false
testCase.run (properties, async)[/tt:1deolyml]
I find Option_Two easier to read but...
Though with Option_Two I'm not clear on how to pass or retreive parameters from TC:TEST_Called_This_TestCase_Slave. Is there an online manual (API, etc) that I've missed so far that will help?
Many thanks...