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

Closes a created TestResultSession More...

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

Public Attributes

TestResultSessionVariable testResultSession
 Cardinality [1]
The TestResultSession which shall be closed. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Cardinality [0..1]
Validity of ActionRealisation. More...
 

Detailed Description

Closes a created TestResultSession

The CloseTestResultSession activity to closes a created TestResultSession and shall cause the OTX runtime system to finally write the results into the persistence layer.

If a test sequence uses a TestResultSession after it’s been closed by a CloseTestResultSession action, the runtime system shall throw an otx:InvalidReferenceException.

Closing an uninitialized or already closed TestResultSession shall perform no operation and report no errors.It shall be for all effects a NOP.

Exceptions
Exceptions.TestResultSaveExceptionThis exception is thrown if the changes within the TestResultSession can’t be written into the persistence layer. In this case the TestResultSession shall not be closed.
Syntax
TestResultHandling.CloseTestResultSession(TestResultSessionVariable testResultSession);
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.SetDtcTestResult(TestResultSession1, TestResultContainer1, NULL, NULL, NULL, {""}, NULL, TestResultState1);
TestResultHandling.CloseTestResultSession(TestResultSession1);

Member Data Documentation

◆ testResultSession

TestResultSessionVariable OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.CloseTestResultSession.testResultSession

Cardinality [1]
The TestResultSession which shall be closed.

OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.CloseTestResultSession.testResultSession
TestResultSessionVariable testResultSession
Cardinality [1] The TestResultSession which shall be closed.
Definition: TestResultHandling.cs:1615
OpenTestSystem.Otx.Extensions.TestResultHandling.DataTypes.TestResultStates.NOT_TESTED
@ NOT_TESTED
The TestResultContainer has not been tested yet. This is the most critical state.