I made a calling testcase that I'm using to prompt some values and to run the other testcases in my testsuite; at the end of the calling testcase, I'm prompting the run status with this teardown script. How can I retrieve the status of the called testcases (I need OK/Failed, not the details) ? I can get the calling testcase status but not the ones from the 'run testcase' steps (these are step3 & 4 in my calling testcase).
My prompt shows correctly: testcase = the calling test case name, steps = the 2 run testcases names, the calling testcase status and what I cannot get: step3 = class com.eviware.soapui.model.testsuite.teststepresult$teststepstatus
the mirror status, that works fine. but as I have multiple runtestcase steps I'd need the status of each runtestcase and I don't find the way to retrieve that info, testRunner.results returns me empty string.
testRunner.results returns a list containing all TestStepResults currently created for the execution of the TestCase, so if your last three steps were Run TestCase steps, the last three entrees in this list should correspond to the execution and status of these TestCases. Try the following to get an idea;
for( r in testRunner.results ) log.info( "TestStep " + r.testStep.name + " finished with status " + r.status )