I was able to do this by scanning through the assertions. It seems the status of the TC is stored in the testRunner which I am not sure of how you would be able to grab that unless you set up a controller script that runs everything. Only problem with controller scripts is they lock down that script completely and can easily lock up your SoapUI and there is no decent way to cancel them (unless you build in a kill switch).
Here is the code I used to get the assertion results (mine is a totally different project that I tested with)
def proj = testRunner.testCase.testSuite.project.getWorkspace().getProjectByName("AutoCreate");
for (ts in proj.getTestSuiteByName("AutoTest").getTestCaseByName("AutoCreate").getTestStepList()) {
if (ts instanceof com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep ) {
for (assertion in ts.getAssertionList() ){
log.info assertion.getStatus();
}
}
}
And a sample of the results:
Mon Feb 17 06:18:52 MST 2014:INFO:VALID
Mon Feb 17 06:18:52 MST 2014:INFO:VALID
Mon Feb 17 06:18:52 MST 2014:INFO:FAILED
Mon Feb 17 06:18:52 MST 2014:INFO:UNKNOWN
Mon Feb 17 06:18:52 MST 2014:INFO:UNKNOWN
Mon Feb 17 06:18:52 MST 2014:INFO:UNKNOWN
Mon Feb 17 06:18:52 MST 2014:INFO:UNKNOWN