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

Adds a file to a TestResultContainer More...

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

Public Attributes

StringTerm filePath
 The path of the file which shall be added More...
 
TestResultContainerTerm testResultContainer
 The TestResultContainer which shall receive the file 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 a file to a TestResultContainer

The AddFileToTestResult activity to adds a file to a TestResultContainer within a TestResultSession by defining the file path. The use case is adding files after evaluating the result, e.g. adding a CAN trace file in case of a NOT_OK TestResultState.

Exceptions
Exceptions.TestResultContainerException
Exceptions.TestResultException
Exceptions.TestResultSessionException
Syntax
TestResultHandling.AddFileToTestResult(TestResultSessionTerm testResultSession, TestResultContainerTerm testResultContainer, StringTerm filePath);
StringTerm filePath
The path of the file which shall be added
Definition: TestResultHandling.cs:1748
TestResultSessionTerm testResultSession
The TestResultSession in which the test results are to be handled
Definition: TestResultHandling.cs:1728
TestResultContainerTerm testResultContainer
The TestResultContainer which shall receive the file
Definition: TestResultHandling.cs:1738
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.AddFileToTestResult(TestResultSession1, TestResultContainer1, "./FileStorage/allFile.zip");
TestResultHandling.CloseTestResultSession(TestResultSession1);
@ NOT_TESTED
The TestResultContainer has not been tested yet.This is the most critical state

Member Data Documentation

◆ filePath

StringTerm OpenTestSystem.Otx.Extensions.TestResultHandling.Actions.AddFileToTestResult.filePath

The path of the file which shall be added

◆ testResultContainer

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

The TestResultContainer which shall receive the file

◆ testResultSession

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

The TestResultSession in which the test results are to be handled