Extensions.TestResultHandling.TestResultSeverity
Jump to navigation
Jump to search
Classification
Name | TestResultSeverity |
Short Description | An enumeration type describing the severity of a test result |
Class | Simple Data Type |
Base Data Type | SimpleType |
Default Value | TRACK |
Provide a Literal | Yes |
SpecifiedBy | ISO 13209-4 |
Standard Compliant | Yes |
Description
TestResultSeverity is an enumeration type describing the severity of a test result. The allowed values are specified in the TestResultSeverities enumeration.
The list of allowed enumeration values is defined as follows:
Value | Literal | Description |
DEBUG | @TestResultSeverity:DEBUG | Temporary test result only for debugging tasks. |
TRACK | @TestResultSeverity:TRACK | Necessary test result for the user defined use cases. |
Order Relation
TestResultSeverity values may occur as operands of comparisons (cf. ISO 13209-2, relational operations). For this case, the following order relation will apply:
DEBUG < TRACK
Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.
@TestResultSeverity:DEBUG|TRACK
Core Conversion
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
ToBoolean | Undefined (should not be used) | |
ToInteger | Return the index of the value in the TestResultSeverities enumeration (smallest index is 0) | Integer val = ToInteger(@TestResultSeverity:DEBUG); // Returns 0 |
ToFloat | Undefined (should not be used) | |
ToString | The resulting string will be the name of the enumeration value | String s = ToString(@TestResultSeverity:TRACK); // Returns "TRACK" |
ToByteField | Undefined (should not be used) |
Sample
TestResultHandling.TestResultSeverity TestResultSeverity1 = @TestResultSeverity:TRACK;