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

Sets the TestResultState More...

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

Public Attributes

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...
 
TestResultStateTerm testResultState
 The TestResultState which is to defined. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Sets the TestResultState

The SetTestResultState activity sets the TestResultState of a TestResultContainer and all its child elements in an arbitrary depth to a given state.

Exceptions
Exceptions.TestResultContainerException
Exceptions.TestResultSessionException
Syntax
TestResultHandling.SetTestResultState(TestResultSessionTerm testResultSession, TestResultContainerTerm testResultContainer, TestResultStateTerm testResultState);
TestResultStateTerm testResultState
The TestResultState which is to defined.
Definition: TestResultHandling.cs:846
TestResultContainerTerm testResultContainer
The TestResultContainer which shall receive the test result.
Definition: TestResultHandling.cs:836
TestResultSessionTerm testResultSession
The TestResultSession in which the test results are to be handled.
Definition: TestResultHandling.cs:826
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.SetTestResultState(TestResultSession1, TestResultContainer1, @TestResultState:NOT_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

◆ testResultContainer

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

The TestResultContainer which shall receive the test result.

◆ testResultSession

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

The TestResultSession in which the test results are to be handled.

◆ testResultState

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

The TestResultState which is to defined.