com.xqual.xagent.launcher
Class CExecutionStep

java.lang.Object
  extended by com.xqual.xagent.launcher.CExecutionStep
All Implemented Interfaces:
com.xqual.xcommon.IConstantsResults

public class CExecutionStep
extends java.lang.Object
implements com.xqual.xcommon.IConstantsResults

The CExecutionStep class defines a generic status foe a particular step during testcase execution

Version:
0.1
Author:
egavaldo

Field Summary
 
Fields inherited from interface com.xqual.xcommon.IConstantsResults
RESULT_EXISTINGDEFECT, RESULT_FAILURE, RESULT_NEWDEFECT, RESULT_NEXTTEST, RESULT_NEXTTESTCASE, RESULT_NO_RESULT, RESULT_NOT_EXECUTED, RESULT_PAUSE, RESULT_PREVIOUSTEST, RESULT_PREVIOUSTESTCASE, RESULT_RELATIVE, RESULT_REWINDTESTCASE, RESULT_SUCCESS, RESULT_UNKNOWN
 
Constructor Summary
CExecutionStep(short result, java.lang.String message)
          Construct a CExecutionStep object
CExecutionStep(java.lang.String timestamp, short result, java.lang.String message)
          Construct a CExecutionStep object
 
Method Summary
 java.lang.String getMessage()
          Return Return the message of the execution step
 short getResult()
          Return the result of the execution step The short returned is one of the following value: RESULT_FAILURE, RESULT_NO_RESULT, RESULT_NOT_EXECUTED, RESULT_RELATIVE, RESULT_SUCCESS or RESULT_UNKNOWN
 java.lang.String getTimestamp()
          Return the timestamp of the execution step
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CExecutionStep

public CExecutionStep(short result,
                      java.lang.String message)
Construct a CExecutionStep object

Parameters:
result - a standard result code (RESULT_FAILURE, RESULT_NO_RESULT, RESULT_NOT_EXECUTED, RESULT_RELATIVE, RESULT_SUCCESS or RESULT_UNKNOWN)
message - a message (optional) describing the action and result observed

CExecutionStep

public CExecutionStep(java.lang.String timestamp,
                      short result,
                      java.lang.String message)
Construct a CExecutionStep object

Parameters:
timestamp - a string identifying either the execution time or simply a timestamp
result - a standard result code (RESULT_FAILURE, RESULT_NO_RESULT, RESULT_NOT_EXECUTED, RESULT_RELATIVE, RESULT_SUCCESS or RESULT_UNKNOWN)
message - a message (optional) describing the action and result observed
Method Detail

getTimestamp

public java.lang.String getTimestamp()
Return the timestamp of the execution step

Returns:
the timestamp of the execution step

getResult

public short getResult()
Return the result of the execution step

The short returned is one of the following value: RESULT_FAILURE, RESULT_NO_RESULT, RESULT_NOT_EXECUTED, RESULT_RELATIVE, RESULT_SUCCESS or RESULT_UNKNOWN

Returns:
the result of the execution step

getMessage

public java.lang.String getMessage()
Return Return the message of the execution step

Returns:
the message of the execution step

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object