Vector BLF
Loading...
Searching...
No Matches
TestStructure.h
1// SPDX-FileCopyrightText: 2013-2021 Tobias Lorenz <tobias.lorenz@gmx.net>
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7#include <Vector/BLF/platform.h>
8
9#include <Vector/BLF/AbstractFile.h>
10#include <Vector/BLF/ObjectHeader.h>
11
12#include <Vector/BLF/vector_blf_export.h>
13
14namespace Vector {
15namespace BLF {
16
20struct VECTOR_BLF_EXPORT TestStructure final : ObjectHeader {
21 TestStructure();
22
23 void read(AbstractFile & is) override;
24 void write(AbstractFile & os) override;
25 uint32_t calculateObjectSize() const override;
26
31
33 enum Type : uint16_t {
34 TM_TESTMODULE = 1,
35 TM_TESTGROUP = 2,
36 TM_TESTCASE = 3,
37 TESTCONFIGURATION = 8,
38 TESTUNIT = 9,
39 TESTGROUP = 10,
40 TESTFIXTURE = 11,
41 TESTSEQUENCE = 12,
42 TESTSEQUENCELIST = 13,
43 TESTCASE = 14,
44 TESTCASELIST = 15
45 };
46
50 uint16_t type {};
51
54
58 uint32_t uniqueNo {};
59
61 enum Action : uint16_t {
62 BEGIN = 1,
63 END = 2,
64
70 };
71
75 uint16_t action {};
76
78 enum Result : uint16_t {
79 UNDEFINED = 0,
80 NONE = 1,
81 PASSED = 2,
82 INCONCLUSIVE = 3,
83 FAILED = 4,
84 ERRORINTESTSYSTEM = 5
85 };
86
90 uint16_t result {};
91
96
100 uint32_t nameLength {};
101
105 uint32_t textLength {};
106
110 std::u16string executingObjectName {};
111
115 std::u16string name {};
116
120 std::u16string text {};
121};
122
123}
124}
Definition AbstractFile.h:19
uint16_t result
overall result (verdict) for end of structure element events
Definition TestStructure.h:90
uint32_t executingObjectNameLength
string length in wchar_t's for executingObjectName
Definition TestStructure.h:95
Result
Definition TestStructure.h:78
std::u16string executingObjectName
name of the executing test module or test configuration as shown in CANoe (wchar_t)
Definition TestStructure.h:110
std::u16string text
full informational text for event as it appears in CANoe trace window
Definition TestStructure.h:120
uint32_t uniqueNo
unique number of structure element (in this test run, transitive, can be used to correlate begin/end ...
Definition TestStructure.h:58
Action
Definition TestStructure.h:61
@ ABORT
Definition TestStructure.h:69
uint16_t reservedTestStructure
Definition TestStructure.h:53
uint32_t textLength
string length in wchar_t's for text
Definition TestStructure.h:105
Type
Definition TestStructure.h:33
uint16_t type
type of structure element, see BL_TESTSTRUCT_TYPE_xxx
Definition TestStructure.h:50
uint16_t action
indicates begin/end of structure element, see BL_TESTSTRUCT_ACTION_xxx
Definition TestStructure.h:75
void read(AbstractFile &is) override
Definition TestStructure.cpp:14
uint32_t calculateObjectSize() const override
Definition TestStructure.cpp:54
std::u16string name
name of structure element (can change between begin/end when using CAPL function TestCaseTitle or sim...
Definition TestStructure.h:115
uint32_t executionObjectIdentify
unique ID identifying the executing test module or test configuration
Definition TestStructure.h:30
void write(AbstractFile &os) override
Definition TestStructure.cpp:33
uint32_t nameLength
string length in wchar_t's for name
Definition TestStructure.h:100