Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHi Pat,
I've added some methods for accessing the last testRunner from the corresponding desktop panel, this will be in the upcoming nightly build. So for a testsuite result you would do (abbreviated for readability):
Note that the result is available via the corresponding window (desktop panel), so as soon as that is closed, the results are discarded from memory (for minimizing memory usage).
Corresponding methods exists for testcaserunner and projectrunner.
Hope this helps!
regards,
/Ole
eviware.com
I've added some methods for accessing the last testRunner from the corresponding desktop panel, this will be in the upcoming nightly build. So for a testsuite result you would do (abbreviated for readability):
WsdlTestSuiteDesktopPanel panel = SoapUI.getDesktop().getDesktopPanel( testSuite );
if( panel == null )
{
UISupport.showErrorMessage( "TestSuite window has been closed and results discarded" );
}
else
{
WsdlTestSuiteRunner runner = panel.getTestSuiteRunner();
if( runner == null )
{
// show error that tests have not been run
}
else
{
// access results from runner and report to TestLink..
}
}
Note that the result is available via the corresponding window (desktop panel), so as soon as that is closed, the results are discarded from memory (for minimizing memory usage).
Corresponding methods exists for testcaserunner and projectrunner.
Hope this helps!
regards,
/Ole
eviware.com