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

Adds additional information to a TestResultContainer More...

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

Public Attributes

StringTerm information
 Cardinality [1]
The textual information which shall be added. More...
 
TestResultContainerTerm testResultContainer
 Cardinality [1]
The TestResultContainer which shall receive the additional information. More...
 
TestResultSessionTerm testResultSession
 Cardinality [1]
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

Adds additional information to a TestResultContainer

The AddInfoToTestResult activity to adds additional information to a TestResultContainer within a TestResultSession. The use case is adding additional information after evaluating the result, e.g. adding a variable trace as string in case of a NOT_OK TestResultState.

Exceptions
Exceptions.TestResultExceptionIf the information element is not valid for the test result handling framework, e.g. the information string supplied is too large.
Exceptions.TestResultContainerExceptionIf no test result has been set for the given TestResultContainer within the given TestResultSession.
Syntax
TestResultHandling.AddInfoToTestResult(TestResultSessionTerm testResultSession, TestResultContainerTerm testResultContainer, StringTerm information);
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.AddInfoToTestResult(TestResultSession1, TestResultContainer1, "emotive");
TestResultHandling.CloseTestResultSession(TestResultSession1);

Member Data Documentation

◆ information

StringTerm OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.AddInfoToTestResult.information

Cardinality [1]
The textual information which shall be added.

◆ testResultContainer

TestResultContainerTerm OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.AddInfoToTestResult.testResultContainer

Cardinality [1]
The TestResultContainer which shall receive the additional information.

◆ testResultSession

TestResultSessionTerm OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.AddInfoToTestResult.testResultSession

Cardinality [1]
The TestResultSession in which the test results are to be handled.

OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.AddInfoToTestResult.testResultContainer
TestResultContainerTerm testResultContainer
Cardinality [1] The TestResultContainer which shall receive the additional information.
Definition: TestResultHandling.cs:1692
OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.AddInfoToTestResult.testResultSession
TestResultSessionTerm testResultSession
Cardinality [1] The TestResultSession in which the test results are to be handled.
Definition: TestResultHandling.cs:1682
OpenTestSystem.Otx.Extensions.TestResultHandling.DataTypes.TestResultStates.NOT_TESTED
@ NOT_TESTED
The TestResultContainer has not been tested yet. This is the most critical state.
OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.AddInfoToTestResult.information
StringTerm information
Cardinality [1] The textual information which shall be added.
Definition: TestResultHandling.cs:1702