OTX Reference  
OpenTestSystem.Otx.Extensions.TestResultHandling.DataTypes.TestResultSeverity Class Reference

A TestResultSeverity is an enumeration type describing the severity of a test result. The allowed values are specified in the TestResultSeverities enumeration More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.TestResultHandling.DataTypes.TestResultSeverity:
Inheritance graph

Public Attributes

TestResultSeverityLiteral init
 This optional element stands for the hard-coded initialisation value of the identifier at declaration time. More...
 

Detailed Description

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:

ConversionResultSample
ToBooleanUndefined (should not be used)
ToIntegerReturns the index of the value in the TestResultSeverities enumeration (smallest index is 0)Integer val = ToInteger(@TestResultSeverity:DEBUG); // Returns 0
ToFloatUndefined (should not be used)
ToStringThe resulting string will be the name of the enumeration valueString s = ToString(@TestResultSeverity:TRACK); // Returns "TRACK"
ToByteFieldUndefined (should not be used)

Sample
TestResultHandling.TestResultSeverity TestResultSeverity1 = @TestResultSeverity:TRACK;

Member Data Documentation

◆ init

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.