Package com.qcefast.enums
Enum Status
- java.lang.Object
-
- java.lang.Enum<Status>
-
- com.qcefast.enums.Status
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Status>
,java.lang.constant.Constable
public enum Status extends java.lang.Enum<Status>
The constants in this enum are used to represent the potential statuses of aTestStep
,FunctionalTestStep
,TestScript
,FastXml
. Each status has a rank. After running aFunctionalTestStep
,TestScript
, or aFastXml
, the worst status is returned.- Since:
- 1.0.0
-
-
Method Summary
Modifier and Type Method Description int
getRank()
Gets rank.static Status
getStatusByRank(int rank)
Gets status by rank.static Status
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final Status ERROR
Error status.- Since:
- 1.0.0
-
FAILED
public static final Status FAILED
Failed status.- Since:
- 1.0.0
-
INCOMPLETE
public static final Status INCOMPLETE
Incomplete status.- Since:
- 1.0.0
-
RUNNING
public static final Status RUNNING
Running status.- Since:
- 1.0.0
-
SKIPPED
public static final Status SKIPPED
Skipped status.- Since:
- 1.0.0
-
PASSED
public static final Status PASSED
Passed status.- Since:
- 1.0.0
-
NO_RUN
public static final Status NO_RUN
No run status.- Since:
- 1.0.0
-
-
Method Detail
-
values
public static Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Status valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getRank
public int getRank()
Gets rank. The lost the rank, the worse the status- Returns:
- the rank
- Since:
- 1.0.0
-
getStatusByRank
public static Status getStatusByRank(int rank)
Gets status by rank.- Parameters:
rank
- the rank- Returns:
- the status by rank
- Since:
- 1.0.0
-
-