OTX Reference  
OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.SetValueTestResult Class Reference

Sets the TestResult by an actual value More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.SetValueTestResult:
Inheritance graph

Public Attributes

SimpleTerm actualValue
 The actual value which shall be assigned to the TestResult. More...
 
TestResultStateTerm testResultState
 The TestResultState which shall be assigned to the TestResultContainer. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.SetTestResult
StringTerm description
 This optional element can be used for a textual description of the test result. More...
 
MapTerm properties
 This optional element can be used for setting properties of the test result (e.g. a print condition, an identifier for forwarding the result value to a downstream IT system). The keys and values of the map shall be only of otx:CountableType. More...
 
TestResultSeverityTerm severity
 This element represents the TestResultSeverity of the test result. More...
 
TestResultContainerTerm testResultContainer
 The TestResultContainer which shall receive the test result. More...
 
TestResultSessionTerm testResultSession
 The TestResultSession in which the test results are to be handled. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Sets the TestResult by an actual value

The SetValueTestResult activity to sets the TestResult of a TestResultContainer within a TestResultSession by assigning an actual value and a defined TestResultState.

Exceptions
Exceptions.TestResultContainerExceptionIf the TestResultContainer is a parent TestResultContainer with child TestResultContainers.
Exceptions.TestResultExceptionIf a test result value element is not valid for the test result handling framework, e.g. the data size of the actual value is too large.
Checker rules
CheckerRule.TestResultHandling_Chk003 - correct element types for properties map
Syntax
TestResultHandling.SetValueTestResult(TestResultSessionTerm testResultSession, TestResultContainerTerm testResultContainer, SimpleTerm actualValue, TestResultStateTerm testResultState, TestResultSeverityTerm severity = @TestResultSeverity:TRACK, StringTerm description = "", MapTerm properties = NULL);
TestResultSessionTerm testResultSession
The TestResultSession in which the test results are to be handled.
Definition: TestResultHandling.cs:883
TestResultSeverityTerm severity
This element represents the TestResultSeverity of the test result.
Definition: TestResultHandling.cs:905
MapTerm properties
This optional element can be used for setting properties of the test result (e.g. a print condition,...
Definition: TestResultHandling.cs:925
StringTerm description
This optional element can be used for a textual description of the test result.
Definition: TestResultHandling.cs:915
TestResultContainerTerm testResultContainer
The TestResultContainer which shall receive the test result.
Definition: TestResultHandling.cs:893
TestResultStateTerm testResultState
The TestResultState which shall be assigned to the TestResultContainer.
Definition: TestResultHandling.cs:1012
SimpleTerm actualValue
The actual value which shall be assigned to the TestResult.
Definition: TestResultHandling.cs:1002
Examples
// Local Declarations
TestResultHandling.TestResultSession TestResultSession1;
TestResultHandling.TestResultContainer TestResultContainer1;
TestResultHandling.TestResultState TestResultState1 = @TestResultState:NOT_TESTED;
// Flow
TestResultSession1 = TestResultHandling.GetTestResultSession("emotive", "244");
TestResultContainer1 = TestResultHandling.GetTestResultContainerByName(TestResultCon2);
TestResultHandling.SetValueTestResult(TestResultSession1, TestResultContainer1, NULL, NULL, NULL, @TestResultState:NOT_OK, @TestResultState:OK);
TestResultState1 = TestResultHandling.GetTestResultState(TestResultSession1, TestResultContainer1);
TestResultHandling.CloseTestResultSession(TestResultSession1);
@ NOT_TESTED
The TestResultContainer has not been tested yet.This is the most critical state.

Member Data Documentation

◆ actualValue

SimpleTerm OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.SetValueTestResult.actualValue

The actual value which shall be assigned to the TestResult.

◆ testResultState

TestResultStateTerm OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.SetValueTestResult.testResultState

The TestResultState which shall be assigned to the TestResultContainer.