Extensions.TestResultHandling.SetDtcTestResult
Jump to navigation
Jump to search
Classification
Name | AddInfoToTestResult |
Short Description | Sets the test result of a TestResultContainer within a TestResultSession by evaluating a list of diagnostic trouble codes (DTC’s) |
Class | Action |
Extension | OTX TestResultHandling extension |
Group | TestResultHandling related Actions |
Exceptions | testResult:TestResultContainerException testResult:TestResultException testResult:TestResultSessionException |
Checker Rules | TestResultHandling_Chk001 TestResultHandling_Chk002 TestResultHandling_Chk003 |
Standard Compliant | Yes |
OTL Syntax
ActionRealisation TestResultHandling.SetDtcTestResult(otx:ListTerm diagnosticTroubleCodes, otx:ListTerm ignoredDiagnosticTroubleCodes, testResult:TestResultStateVariable testResultState, testResult:TestResultSessionTerm testResultSession, testResult:TestResultContainerTerm testResultContainer, testResult:TestResultSeverityTerm severity, otx:StringTerm description, otx:MapTerm properties);
Description
The SetDtcTestResult action sets the test result of a TestResultContainer within a TestResultSession by evaluating a list of diagnostic trouble codes (DTC’s). It is possible to define DTC's which are to be ignored for the evaluation.
If a DTC exists in the diagnosticTroubleCodes list which is not included in the ignoredDiagnosticTroubleCodes list, the TestResultState will be NOT_OK. It inherits its basic members from the abstract type SetTestResult.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
diagnosticTroubleCodes | otx:List | Term | - | [1..1] | A list of DTC's which will be evaluated.
The elements of the list will be only of otx:CountableType (see ISO 13209-2). |
ignoredDiagnosticTroubleCodes | otx:List | Term | - | [0..1] | An optional list of DTC's which will be ignored for the evaluation.
The elements of the list will be only of otx:CountableType (see ISO 13209-2). |
testResultState | testResult:TestResultState | Variable | - | [0..1] | This optional element represents the TestResultState variable which will receive the 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). |