|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOutcome<T extends AbstractRunner>
This interface defines what an outcome is for the JTRunner framework.
An outcome is composed by:
1. an epoch
2. a run
3. an enterprise configuration
4. a set of parameters
5. an exception
6. a JTR-node
7. a timestamp
8. a duration
What it means is that durig epoch epoch
at run
run
, an IRunner
has experienced an exception
using the given enterprise configuration and its set of parameters.
IOutcomeFactory
Nested Class Summary | |
---|---|
static class |
IOutcome.OutcomeType
Categorization of the different admitted outcome types. |
Method Summary | |
---|---|
EnterpriseConfig |
getEnterpriseConfig()
Get the enterprise configuration |
java.lang.Integer |
getEpoch()
Get the epoch. |
java.lang.Throwable |
getException()
Get the exception |
NodeInfo |
getNode()
Return the JTR-node the runner that produced this outcome belongs to. |
ParametersMap |
getParametersMap()
Returns the parameters the IRunner was working with at the
moment of the exception |
java.lang.Integer |
getRun()
Get the run |
java.lang.Long |
getRunDuration()
Get the duration of the described run. |
java.lang.Class |
getRunnerCategory()
Returns the category the runner that produced this outcome belogns to. |
java.lang.String |
getRunnerId()
Returns the unique ID of the runner that produced this outcome. |
java.util.Date |
getTimeStamp()
Get the run's timestamp. |
IOutcome.OutcomeType |
getType()
Get the type of the outcome |
java.io.Serializable |
getUserObject()
Get a user-object that can be used to add any user-defined information to the output of the test. |
boolean |
isFailure()
Returs Boolean.TRUE iff the type equals OutcomeType.FAILURE . |
void |
setEnterpriseConfig(EnterpriseConfig cfg)
Set the enterprise configuration active at the moment of the exception |
void |
setEpoch(java.lang.Integer epoch)
Set the epoch when the exception happened. |
void |
setException(java.lang.Throwable t)
Set the exception |
void |
setNode(NodeInfo node)
Set the JTR-node the runner that produced this outcome belongs to. |
void |
setParametersMap(ParametersMap params)
Sets the parameters the IRunner that experiences the
excepion was working with |
void |
setRun(java.lang.Integer run)
Set the run when the exception happened |
void |
setRunDuration(java.lang.Long duration)
Set the duration of the described run. |
void |
setRunnerCategory(java.lang.Class<T> category)
Set the category the runner that produced this outcome belogns to. |
void |
setRunnerId(java.lang.String id)
Set the unique ID of the runner that produced this outcome. |
void |
setTimeStamp(java.util.Date ts)
Set the timestamp indicating when the run has been started. |
void |
setType(IOutcome.OutcomeType type)
Set the type of the outcome |
void |
setUserObject(java.io.Serializable obj)
Set a user-object that can be used to add any user-defined information to the output of the test. |
java.lang.String |
toString()
Return a description of the outcome |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
void setEpoch(java.lang.Integer epoch)
epoch
- The epochjava.lang.Integer getEpoch()
void setRun(java.lang.Integer run)
run
- The runjava.lang.Integer getRun()
void setEnterpriseConfig(EnterpriseConfig cfg)
cfg
- The enterprise configurationEnterpriseConfig getEnterpriseConfig()
void setParametersMap(ParametersMap params)
IRunner
that experiences the
excepion was working with
params
- The IRunner
's parametersParametersMap getParametersMap()
IRunner
was working with at the
moment of the exception
void setException(java.lang.Throwable t)
t
- The exceptionjava.lang.Throwable getException()
void setType(IOutcome.OutcomeType type)
IOutcome.OutcomeType getType()
boolean isFailure()
Boolean.TRUE
iff the type equals OutcomeType.FAILURE
.
java.lang.Class getRunnerCategory()
java.lang.String getRunnerId()
void setRunnerCategory(java.lang.Class<T> category)
void setRunnerId(java.lang.String id)
NodeInfo getNode()
void setNode(NodeInfo node)
void setRunDuration(java.lang.Long duration)
java.lang.Long getRunDuration()
void setTimeStamp(java.util.Date ts)
java.util.Date getTimeStamp()
void setUserObject(java.io.Serializable obj)
toString
method implementation too.
java.io.Serializable getUserObject()
toString
method implementation too.
java.lang.String toString()
toString
in class java.lang.Object
|
The JTR Project is licensed under GPL version 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |