com.xqual.xagent.launcher
Class CReturnStatus

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

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

The CReturnStatus class defines a generic status returned by a launcher after it executed a testcase

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
CReturnStatus()
           
CReturnStatus(short result)
           
CReturnStatus(short result, java.util.Vector<CExecutionStep> executionSteps)
          Construct a CReturnStatus object.
 
Method Summary
 java.util.Vector<CExecutionStep> getExecutionSteps()
          Return the history of all the execution steps
 short getResult()
          Return the global result of the test execution
 void setResult(short result)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CReturnStatus

public CReturnStatus(short result,
                     java.util.Vector<CExecutionStep> executionSteps)
Construct a CReturnStatus object.

Parameters:
result - a global standard result code (RESULT_FAILURE, RESULT_NO_RESULT, RESULT_NOT_EXECUTED, RESULT_RELATIVE, RESULT_SUCCESS or RESULT_UNKNOWN)
executionSteps - an history of all the execution steps. Each CExecutionStep object represents a step in the testcase execution process.
See Also:
CExecutionStep

CReturnStatus

public CReturnStatus(short result)

CReturnStatus

public CReturnStatus()
Method Detail

getResult

public short getResult()
Return the global result of the test execution

Returns:
a global standard result code (RESULT_FAILURE, RESULT_NO_RESULT, RESULT_NOT_EXECUTED, RESULT_RELATIVE, RESULT_SUCCESS or RESULT_UNKNOWN)

setResult

public void setResult(short result)

getExecutionSteps

public java.util.Vector<CExecutionStep> getExecutionSteps()
Return the history of all the execution steps

Returns:
an array of CExecutionStep object each representing a step in the testcase execution process.
See Also:
CExecutionStep

toString

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