TPTP 4.4.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.core.services
Class AbstractTestResultsPublicationService

java.lang.Object
  extended byorg.eclipse.hyades.automation.core.AbstractService
      extended byorg.eclipse.hyades.automation.server.AbstractService
          extended byorg.eclipse.hyades.automation.server.AbstractRelaunchableService
              extended byorg.eclipse.hyades.automation.server.AbstractWorkspaceSensitiveService
                  extended byorg.eclipse.hyades.automation.server.AbstractProjectSensitiveService
                      extended byorg.eclipse.hyades.test.core.services.AbstractTestResultsPublicationService
All Implemented Interfaces:
java.io.Serializable, org.eclipse.hyades.automation.core.Service
Direct Known Subclasses:
TestResultsPublicationService, TestSuitesPublicationService, TestSuitesTabularPublicationService

public abstract class AbstractTestResultsPublicationService
extends org.eclipse.hyades.automation.server.AbstractProjectSensitiveService

The abstract test results publication service provides a base implementation of test results publication that may be extended by more specialized publication services Four input properties of 'workspace', 'project', 'results' and 'report' without any output properties defined. The service identity is 'org.eclipse.hyades.test.core.publish'

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.eclipse.hyades.automation.core.Service
org.eclipse.hyades.automation.core.Service.Discoverable, org.eclipse.hyades.automation.core.Service.Executable, org.eclipse.hyades.automation.core.Service.Requestable
 
Field Summary
protected  long endDate
          optional end time range for report
protected  java.lang.String report
          Path to file where report should be written
protected  java.lang.String reportTemplateLocation
          optional location of BIRT report template
protected  java.lang.String[] resultPaths
           
protected  java.util.List results
          List of results on which to report
protected  long startDate
          optional start time range for report
 
Fields inherited from class org.eclipse.hyades.automation.server.AbstractProjectSensitiveService
project, projectSpecifier
 
Fields inherited from class org.eclipse.hyades.automation.server.AbstractWorkspaceSensitiveService
workspace, workspaceSpecifier
 
Constructor Summary
protected AbstractTestResultsPublicationService()
          Default constructor invokes up hierarchy for any initialization required
 
Method Summary
protected  void cleanup()
          Cleanup after service executes
 java.lang.Object execute()
           
protected  void handleThrowable(java.lang.Throwable t)
          Default outputs throwable to standard console out
protected  void initialize()
           
protected  void processOutputFolder()
           
protected abstract  void publish()
          Publish the test results report
protected  void resolvePaths()
          The pathnames specified in the results list are treated in the following manner: If the path is absolute, it will be converted into a path relative to the project, by searching the workspace and project passed into the service.
protected  java.lang.Object returnResult()
          Derive result to return
 
Methods inherited from class org.eclipse.hyades.automation.server.AbstractProjectSensitiveService
getProject, refreshProject
 
Methods inherited from class org.eclipse.hyades.automation.server.AbstractRelaunchableService
copy, reconstructCommandLine
 
Methods inherited from class org.eclipse.hyades.automation.server.AbstractService
execute
 
Methods inherited from class org.eclipse.hyades.automation.core.AbstractService
configure, configure, createMemento, getIdentifier, getProperties, getProperty, getProperty, getPublicProperties, getRoot, isQuiet, print, println, println, setMemento, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

results

protected java.util.List results
List of results on which to report


report

protected java.lang.String report
Path to file where report should be written


resultPaths

protected java.lang.String[] resultPaths

startDate

protected long startDate
optional start time range for report


endDate

protected long endDate
optional end time range for report


reportTemplateLocation

protected java.lang.String reportTemplateLocation
optional location of BIRT report template

Constructor Detail

AbstractTestResultsPublicationService

protected AbstractTestResultsPublicationService()
Default constructor invokes up hierarchy for any initialization required

Method Detail

cleanup

protected void cleanup()
Cleanup after service executes


execute

public final java.lang.Object execute()

initialize

protected void initialize()

processOutputFolder

protected void processOutputFolder()
Provisional API: This API is subject to change in the next release.
As of TPTP V4.4.0, this is stable provisional API (see http://www.eclipse.org/tptp/home/documents/process/development/api_contract.html).

resolvePaths

protected void resolvePaths()
The pathnames specified in the results list are treated in the following manner: If the path is absolute, it will be converted into a path relative to the project, by searching the workspace and project passed into the service. If it is relative, it will be unmodified under the presumption that it is relative to the specified workspace and project. Extending classes may override this behavior.


handleThrowable

protected void handleThrowable(java.lang.Throwable t)
Default outputs throwable to standard console out

Parameters:
t - the throwable caught to be handled

publish

protected abstract void publish()
Publish the test results report


returnResult

protected java.lang.Object returnResult()
Derive result to return

Returns:
the result to return, service-level not semantic-level per service domain

TPTP 4.4.0 Testing Tools Project
Public API Specification