com.togethersoft.testing.shared
Interface IResult

All Known Subinterfaces:
ITestResultAsset

public interface IResult

Represents a result of a test


Method Summary
 voidaddResultListener(IResultListener l)
          Adds a result listener.
 intcountErrors()
          Returns the number of errors in this result.
 intcountFailures()
          Returns the number of failures in this result.
 StringgetAssetReferenceId()
          Returns the reference id of test asset that produced this result.
 intgetChildTestResultCount()
          Returns the number of child results of this results.
 longgetDuration()
          Returns the time spent by running the test (in milliseconds)
 longgetSinceStart()
          Returns the timestamp at which this result was created since the start of test
 StringgetTestName()
          Returns the name of the test that pruduced this result
 StringgetTestOutcome()
          Returns string representation of the ooutcome of this test (success, error, failure)
 StringgetTimestamp()
          Returns the absolute timestamp at which the result was created
 voidremoveResultListener(IResultListener l)
          Removes the given result listener
 voidsetDuration(long duration)
          Sets the duration of this test
 voidsetSinceStart(long sincestart)
          Sets the timestamp at which the test was started
 voidsetTestName(String name)
          Sets the name of test that produced this result
 voidsetTimestamp(String timestamp)
          Sets the time of creation of this result
 EnumerationtaskReferences()
          Returns an enumeration of task references (subresults) contained in this result

Method Detail

addResultListener

public void addResultListener(IResultListener l)
Adds a result listener.

countErrors

public int countErrors()
Returns the number of errors in this result.

countFailures

public int countFailures()
Returns the number of failures in this result.

getAssetReferenceId

public String getAssetReferenceId()
Returns the reference id of test asset that produced this result.

getChildTestResultCount

public int getChildTestResultCount()
Returns the number of child results of this results.

getDuration

public long getDuration()
Returns the time spent by running the test (in milliseconds)

getSinceStart

public long getSinceStart()
Returns the timestamp at which this result was created since the start of test

getTestName

public String getTestName()
Returns the name of the test that pruduced this result

getTestOutcome

public String getTestOutcome()
Returns string representation of the ooutcome of this test (success, error, failure)

getTimestamp

public String getTimestamp()
Returns the absolute timestamp at which the result was created

removeResultListener

public void removeResultListener(IResultListener l)
Removes the given result listener

setDuration

public void setDuration(long duration)
Sets the duration of this test

setSinceStart

public void setSinceStart(long sincestart)
Sets the timestamp at which the test was started

setTestName

public void setTestName(String name)
Sets the name of test that produced this result

setTimestamp

public void setTimestamp(String timestamp)
Sets the time of creation of this result

taskReferences

public Enumeration taskReferences()
Returns an enumeration of task references (subresults) contained in this result