![]() |
OTX Reference
|
|
A TestResultHandlingLevel is an enumeration type describing test result handling thresholds used by the SetTestResultHandlingLevel action. The allowed values are specified in the TestResultHandlingLevels enumeration More...
Public Attributes | |
TestResultHandlingLevelLiteral | init |
This optional element stands for the hard-coded initialisation value of the identifier at declaration time. More... | |
A TestResultHandlingLevel is an enumeration type describing test result handling thresholds used by the SetTestResultHandlingLevel action. The allowed values are specified in the TestResultHandlingLevels enumeration
Order Relation
TestResultHandlingLevel values may occur as operands of comparisons (cf. ISO 13209-2, 7.15.8). For this case, the following order relation will apply:
ALL < TRACK < OFF
Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.
@TestResultHandlingLevel:ALL|TRACK|OFF
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 SetTestResultHandlingLevels enumeration (smallest index is 0) | Integer val = ToInteger(@TestResultHandlingLevel:ALL); // Returns 0 |
ToFloat | Undefined (should not be used) | |
ToString | The resulting string will be the name of the enumeration value | String s = ToString(@TestResultHandlingLevel:TRACK); // Returns "TRACK" |
ToByteField | Undefined (should not be used) |
Sample
TestResultHandling.TestResultHandlingLevel TestResultHandlingLevel1 = @TestResultHandlingLevel:TRACK;
TestResultHandlingLevelLiteral OpenTestSystem.Otx.Extensions.TestResultHandling.DataTypes.TestResultHandlingLevel.init |
This optional element stands for the hard-coded initialisation value of the identifier at declaration time.
IMPORTANT - If the TestResultHandlingLevel declaration is not explicitly initialised (omitted <init> element), the default value shall be ALL.