Package dev.galasa.framework
Enum Class TestRunLifecycleStatus
- All Implemented Interfaces:
Serializable
,Comparable<TestRunLifecycleStatus>
,Constable
Represents a possible state of a test run.
Over the course of a test run lifespan, the state will transition between these possible values.
- Since:
- 0.30.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen the engine controller sees a QUEUED run, it moves it to ALLOCATEDWhen the test run is cancelled, the engine controller moves the state to cancelling from QUEUEDThe test is runningThe resources were not available to run the test, so it backs off waiting for a while before it can be attempted again. -
Method Summary
Modifier and TypeMethodDescriptionstatic TestRunLifecycleStatus
getFromString
(String statusAsString) Looks up the enum from the string which describes the enum.static boolean
isStatusValid
(String statusAsString) Does the input string represent one of the enumerated values ? An insensitive string comparison is performed against the enum.toString()toString()
static TestRunLifecycleStatus
Returns the enum constant of this class with the specified name.static TestRunLifecycleStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QUEUED
-
ALLOCATED
When the engine controller sees a QUEUED run, it moves it to ALLOCATED -
STARTED
-
BUILDING
-
PROVSTART
-
GENERATING
-
UP
-
RUNNING
The test is running -
RUNDONE
-
ENDING
-
FINISHED
-
CANCELLING
When the test run is cancelled, the engine controller moves the state to cancelling from QUEUED -
WAITING
The resources were not available to run the test, so it backs off waiting for a while before it can be attempted again.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFromString
Looks up the enum from the string which describes the enum. The string matches the enum value if the enum.toString() matches it, ignoring case. -
isStatusValid
Does the input string represent one of the enumerated values ? An insensitive string comparison is performed against the enum.toString() -
toString
- Overrides:
toString
in classEnum<TestRunLifecycleStatus>
-
getAllAsStringList
- Returns:
- A list of possible status names, as strings
-