- Implement extension to extension point
org.eclipse.hyades.execution.testService - Implement ITestService class [optionally extend AbstractTestService]
- Implement service methods within ITestService [optionally adhere to reflected method signature]
Link to published extension point schema.
All TestServices must implement the ITestService interface, which declares a single run method.
Implementors are encouraged to extend the AbstractTestService class, which implements the run method,
parses apart the method names and argument list, attempts to reflectively invoke the named service,
expecting the following signature: String serviceName(Agent agent, String args, StringBuffer errorBuffer);
and returns the appropriate exception or result.
As mentioned above, if your test service extends AbstractTestService, your service's method signature
should be String serviceName(Agent agent, String args, StringBuffer errorBuffer);
When your service is invoked, you are expected to perform the service and either return a String
containing the result of the service (which will be interpretable by your agent side wrapper if you
have provided one) or return null and populate the errorBuffer with the error description.
If you return null and pass back an error description, the AbstractTestService will prepend "Exception:" to
your description, indicating that your service wrapper (if you provided one) should throw an exception.