public void afterRun( TestSuiteRunner testRunner, TestSuiteRunContext runContext )
{
if( SoapUI.getTestMonitor().hasRunningLoadTest( testRunner.getTestSuite() ) )
return;
WsdlTestSuiteRunner wsdlRunner = ( WsdlTestSuiteRunner )testRunner;
String testSuiteName = testRunner.getTestRunnable().getName();
if( testRunner.getStatus() == TestCaseRunner.Status.CANCELED )
runLog.addText( "TestSuite [" + testSuiteName + "] 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( "TestSuite [" + testSuiteName + "] failed [" + msg + "], time taken = "
+ wsdlRunner.getTimeTaken() );
}
else
runLog.addText( "TestSuite [" + testSuiteName + "] finished with status [" + testRunner.getStatus()
+ "], time taken = " + wsdlRunner.getTimeTaken() );
}