Difference between revisions of "Extensions.TestResultHandling.AddFileToTestResult"
Jump to navigation
Jump to search
(Created by Ngoc Tran.) |
(Edited by Ngoc Tran.) |
||
Line 22: | Line 22: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
--> | --> |
Latest revision as of 08:55, 15 November 2019
Classification
Name | AddFileToTestResult |
Short Description | Adds a file to a TestResultContainer within a TestResultSession by defining the file path |
Class | Action |
Extension | OTX TestResultHandling extension |
Group | TestResultHandling related Actions |
Exceptions | testResult:TestResultContainerException testResult:TestResultException testResult:TestResultSessionException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ActionRealisation TestResultHandling.AddFileToTestResult(TestResultSessionTerm testResultSession, TestResultContainerTerm testResultContainer, StringTerm filePath);
Description
The AddFileToTestResult action adds a file to a TestResultContainer within a TestResultSession by defining the file path. The use case is adding files after evaluating the test result, e.g. adding a CAN trace file in case of a NOT_OK TestResultState.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
testResultSession | testResult:TestResultSession | Term | - | [1..1] | The TestResultSession in which the test results are to be handled. |
testResultContainer | testResult:TestResultContainer | Term | - | [1..1] | The TestResultContainer which will receive the file. |
filePath | otx:String | Term | - | [1..1] | The path of the file which will be added. The path parameter is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. The format of the file or directory name (e.g. case-sensitive) depends on the operating system. |