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
 The TestResultSession which shall be closed More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 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.

Exceptions
Core.Exceptions.InvalidReferenceException
Exceptions.TestResultSaveException
Syntax
TestResultHandling.CloseTestResultSession(TestResultSessionVariable testResultSession);
TestResultSessionVariable testResultSession
The TestResultSession which shall be closed
Definition: TestResultHandling.cs:1570
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);
@ NOT_TESTED
The TestResultContainer has not been tested yet.This is the most critical state

Member Data Documentation

◆ testResultSession

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

The TestResultSession which shall be closed