Extensions.TestResultHandling.SetToleranceTestResult

From emotive
Jump to navigation Jump to search

Classification

Name SetToleranceTestResult
Short Description Sets the TestResult of a TestResultContainer within a TestResultSession by evaluating whether an actual numeric value is within a defined tolerance range
Class Action
Extension OTX TestResultHandling extension
Group TestResultHandling related Actions
Exceptions testResult:TestResultContainerException
testResult:TestResultException
testResult:TestResultSessionException
otx:OutOfBoundsException
Checker Rules Core_Chk049
TestResultHandling_Chk003
Standard Compliant Yes

OTL Syntax

ActionRealisation TestResultHandling.SetToleranceTestResult(otx:NumericTerm actualValue, testResult:TestResultStateVariable testResultState, testResult:TestResultSessionTerm testResultSession, testResult:TestResultContainerTerm testResultContainer, testResult:TestResultSeverityTerm severity, otx:StringTerm description, otx:MapTerm properties);

Description

The SetToleranceTestResult action sets the TestResult of a TestResultContainer within a TestResultSession by evaluating whether an actual numeric value is within a defined tolerance range. It is possible to evaluate the actual value only against one limit. The SetToleranceTestResult action has a special design. To compare an actualValue the author has the choice

  • either to set the lower limit or the upper limit or
  • to set both limits.

Like this, it is guaranteed that there is at least one limit which can be compared with the actualValue.
The behavior is based on the IsGreatorOrEqual and IsLessOrEqual terms of the OTX Core, please refer to ISO 13209-2. It inherits its basic members from the abstract type SetTestResult.

Properties

Name Data Type Class Default Cardinality Description
actualValue otx:Numeric Term - [1..1] The actual value which will be evaluated whether it is within the defined tolerance range.
testResultState testResult:TestResultState Variable - [0..1] This optional element represents the TestResultState variable which will receive the test result state of the evaluation.
testResultSession testResult:TestResultSession Term - [1..1] (derived from SetTestResult)

The TestResultSession in which the test results are to be handled.

testResultContainer testResult:TestResultContainer Term - [1..1] (derived from SetTestResult)

The TestResultContainer which will receive the test result.

severity testResult:TestResultSeverity Term TRACK [0..1] (derived from SetTestResult)

This element represents the TestResultSeverity of the test result.

description otx:String Term - [0..1] (derived from SetTestResult)

This optional element can be used for a textual description of the test result.

properties otx:Map Term - [0..1] (derived from SetTestResult)

This optional element can be used for setting properties of the test result (e.g. a print condition, an identifier for forwarding the test result value to a downstream IT system). The keys and values of the map will be only of otx:CountableType (see ISO 13209-2).


See also

AddFileToTestResult
AddInfoToTestResult
CloseTestResultSession
MultipleLimit
MultipleOrSingleLimit
SetDtcTestResult
SetEqualityTestResult
SetListTestResult
SetMapTestResult
SetTestResult
SetTestResultHandlingLevel
SetValueTestResult
GetTestResultContainerByName
GetTestResultSession
GetTestResultState