Extensions.TestResultHandling.TestResultHandlingLevel

From emotive
Jump to navigation Jump to search

Classification

Name TestResultHandlingLevel
Short Description An enumeration type describing test result handling thresholds used by the SetTestResultHandlingLevel action
Class Simple Data Type
Base Data Type SimpleType
Default Value TRACK
Provide a Literal Yes
SpecifiedBy ISO 13209-4
Standard Compliant Yes

Description

TestResultHandlingLevel is an enumeration type describing test result handling thresholds used by the SetTestResultHandlingLevel action. The allowed values are specified in the TestResultHandlingLevels enumeration.

The list of allowed enumeration values is defined as follows:

Value Literal Description
TRACK @TestResultHandlingLevel:TRACK Test Results with severity TRACK will be captured.
ALL @TestResultHandlingLevel:ALL Test Results with severity DEBUG or TRACK will be captured.
OFF @TestResultHandlingLevel:OFF No test results will be captured.

Order Relation

TestResultHandlingLevel values may occur as operands of comparisons (cf. ISO 13209-2, relational operations). 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

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 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;