TPTP 4.3.0 Testing Tools Project
Public API Specification

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

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.AbstractTestResultsInterrogationService
All Implemented Interfaces:
java.io.Serializable, org.eclipse.hyades.automation.core.Service
Direct Known Subclasses:
TestResultsInterrogationService

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

The abstract test results interrogation service provides a base implementation of interrogating test results, other implementations can extend this and add additional bits of information that can be gotten from the interrogation. Three input properties of 'workspace', 'project' and 'results' and one output property of 'verdict', the 'verdict' property is set to one of the valid verdicts defined by the test model, at this time this is defined as pass, fail, error and inconclusive. The service identity is 'org.eclipse.hyades.test.core.interrogate' Note that the results in property either specifies a string of a list of strings (one string for each results name) -- the verdict is just one string value of the overall verdict (across all test suite top-level verdicts)

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
 
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 AbstractTestResultsInterrogationService()
          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()
          Initialize state for this service
protected  java.lang.String interrogate()
          Interrogate the test results, seeking the verdict of the test suite
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
 

Constructor Detail

AbstractTestResultsInterrogationService

protected AbstractTestResultsInterrogationService()
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()

handleThrowable

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

Parameters:
t - the throwable caught to be handled

initialize

protected void initialize()
Initialize state for this service


interrogate

protected java.lang.String interrogate()
Interrogate the test results, seeking the verdict of the test suite

Returns:
return the results roll-up verdicts (pass, fail, inconclusive, error)

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.3.0 Testing Tools Project
Public API Specification