getDeployment in beforelaunch() function [message #93949] |
Thu, 22 March 2007 16:11 |
Eclipse User |
|
|
|
Originally posted by: ddesseignet.axway.com
Hello,
I'm working on a test platform which is based on TPTP. I would like to use
the TPTP Automation Service in order to launch test automatically but an
error occurs with the command line tools (automation-client-adapter.bat).
Indeed, in the
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice class,
beforeLaunch() function calls getDeployment() function, if a connection is
specified in the configuration file (for example :
tptp:rac://localhost:8002/default). But this function get a TPTP
deployment and I would like to recover my own deployment (which is an
evolution of a TPTP deployment). I saw that getDeployment() function is
called through
org.eclipse.hyades.test.core.launch.configurations.Deploymen tLaunchConfigurationFacade
class so is it possible for me to put an extension on my project in order
to call my own getDeployment() function ? And in this case, which
extension point is available on TPTP ?
Thanks.
Regards.
Damien.
|
|
|
Re: getDeployment in beforelaunch() function [message #99452 is a reply to message #93949] |
Wed, 30 May 2007 13:43 |
Joe Toomey Messages: 79 Registered: July 2009 |
Member |
|
|
Hi Damien,
Sorry for the late response.
There is not an extension point to provide custom deployment types to
the test execution service, but there is a straightforward way to
accomplish what you want. The logic of the test execution service is
all implemented in the class
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice. You
can easily extend this class with your own execution service, and
override the implementation of the beforeLaunch() method (which is where
the deployment is retrieved.) You can then expose that new service via
the Automatable Services Framework, as described in this tutorial.
http://www.eclipse.org/tptp/test/documents/tutorials/eclipse Con2006/Achieving_Continuous_Integration_with_the_Eclipse_Te st_and_Performance_Tools_Platform.htm
If you have questions about how to expose your own service, please let
us know.
Thanks,
--Joe
Damien wrote:
> Hello,
>
> I'm working on a test platform which is based on TPTP. I would like to
> use the TPTP Automation Service in order to launch test automatically
> but an error occurs with the command line tools
> (automation-client-adapter.bat). Indeed, in the
> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice
> class, beforeLaunch() function calls getDeployment() function, if a
> connection is specified in the configuration file (for example :
> tptp:rac://localhost:8002/default). But this function get a TPTP
> deployment and I would like to recover my own deployment (which is an
> evolution of a TPTP deployment). I saw that getDeployment() function is
> called through
> org.eclipse.hyades.test.core.launch.configurations.Deploymen tLaunchConfigurationFacade
> class so is it possible for me to put an extension on my project in
> order to call my own getDeployment() function ? And in this case, which
> extension point is available on TPTP ?
>
> Thanks.
>
> Regards.
>
> Damien.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04370 seconds