![]() |
OTX Reference
|
|
A TestResultSeverity is an enumeration type describing the severity of a test result. The allowed values are specified in the TestResultSeverities enumeration More...
Public Attributes | |
TestResultSeverityLiteral | init |
This optional element stands for the hard-coded initialisation value of the identifier at declaration time. More... | |
A TestResultSeverity is an enumeration type describing the severity of a test result. The allowed values are specified in the TestResultSeverities enumeration
Order Relation
TestResultSeverity values may occur as operands of comparisons (cf. ISO 13209-2, 7.15.8). 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
Conversion terms
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
---|---|---|
ToBoolean | Undefined (should not be used) | |
ToInteger | Returns 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;
TestResultSeverityLiteral OpenTestSystem.Otx.Extensions.TestResultHandling.DataTypes.TestResultSeverity.init |
This optional element stands for the hard-coded initialisation value of the identifier at declaration time.
IMPORTANT - If the TestResultSeverity declaration is not explicitly initialised (omitted <init> element), the default value shall be TRACK.