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
 The textual information which shall be added More...
 
TestResultContainerTerm testResultContainer
 The TestResultContainer which shall receive the additional information 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
 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.TestResultContainerException
Exceptions.TestResultException
Exceptions.TestResultSessionException
Syntax
TestResultHandling.AddInfoToTestResult(TestResultSessionTerm testResultSession, TestResultContainerTerm testResultContainer, StringTerm information);
TestResultContainerTerm testResultContainer
The TestResultContainer which shall receive the additional information
Definition: TestResultHandling.cs:1649
TestResultSessionTerm testResultSession
The TestResultSession in which the test results are to be handled
Definition: TestResultHandling.cs:1639
StringTerm information
The textual information which shall be added
Definition: TestResultHandling.cs:1659
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);
@ NOT_TESTED
The TestResultContainer has not been tested yet.This is the most critical state

Member Data Documentation

◆ information

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

The textual information which shall be added

◆ testResultContainer

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

The TestResultContainer which shall receive the additional information

◆ testResultSession

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

The TestResultSession in which the test results are to be handled