{
if( SoapUI.getTestMonitor().hasRunningLoadTest( testRunner.getTestCase() )
|| SoapUI.getTestMonitor().hasRunningSecurityTest( testRunner.getTestCase() ) )
return;
WsdlTestCaseRunner wsdlRunner = ( WsdlTestCaseRunner )testRunner;
String testCaseName = testRunner.getTestCase().getName();
if( testRunner.getStatus() == TestCaseRunner.Status.CANCELED )
runLog.addText( "TestCase [" + testCaseName + "] canceled [" + testRunner.getReason() + "], time taken = "
+ wsdlRunner.getTimeTaken() );
else if( testRunner.getStatus() == TestCaseRunner.Status.FAILED )
{
String msg = wsdlRunner.getReason();
if( wsdlRunner.getError() != null )
{
if( msg != null )
msg += ":";
msg += wsdlRunner.getError();
}
runLog.addText( "TestCase [" + testCaseName + "] failed [" + msg + "], time taken = "
+ wsdlRunner.getTimeTaken() );
}
else
runLog.addText( "TestCase [" + testCaseName + "] finished with status [" + testRunner.getStatus()
+ "], time taken = " + wsdlRunner.getTimeTaken() );
}