AutomationClient Execution Results [message #57041] |
Thu, 09 March 2006 17:47 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: rbrady.fas.harvard.edu
I plan to implement a web service that will utilize
AutomationClientAdapter to launch tests and collect results. I was able
to get the AutomationClientAdapter to have a service run a testsuite, but
I have a few simple questions I was hoping you folks could help with.
Will I have to use java.io.File to load the associated test execution file
from disk? Is there a way to get the AutomationClientAdapter.execution
method or some other means to return the execution file object associated
with the test? Parsing the execution file to get results data is
straightforward.
One of the execute methods of AutomationClientAdapter can be run
asynchronously, which is helpful for long-running tests. How would one go
about registering the AutomationClientClient as a listener to the test
execution so that it would be notified when the test finished running?
Thanks...Bob
// Code used to launch tests, from tptp help
AutomationClientAdapter automation = new
AutomationClientAdapter("C:\\eclipse");
Properties properties = new Properties();
properties.setProperty("workspace", "C:\\workspace");
properties.setProperty("project", "TPTP_Test");
properties.setProperty("suite", "test/DemoTest.testsuite");
automation.execute("org.eclipse.hyades.test.tools.core.execute ",
properties);
/*
Code to get execution file, load, & parse results
*/
|
|
|
Powered by
FUDForum. Page generated in 0.03662 seconds