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
14 namespace Vector {
15 namespace BLF {
16
20 struct 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
30 uint32_t executionObjectIdentify {};
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
53 uint16_t reservedTestStructure {};
54
58 uint32_t uniqueNo {};
59
61 enum Action : uint16_t {
62 BEGIN = 1,
63 END = 2,
64
69 ABORT = 3
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
95 uint32_t executingObjectNameLength {};
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}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::TestStructure::result
uint16_t result
overall result (verdict) for end of structure element events
Definition TestStructure.h:90
Vector::BLF::TestStructure::executingObjectNameLength
uint32_t executingObjectNameLength
string length in wchar_t's for executingObjectName
Definition TestStructure.h:95
Vector::BLF::TestStructure::Result
Result
Definition TestStructure.h:78
Vector::BLF::TestStructure::executingObjectName
std::u16string executingObjectName
name of the executing test module or test configuration as shown in CANoe (wchar_t)
Definition TestStructure.h:110
Vector::BLF::TestStructure::text
std::u16string text
full informational text for event as it appears in CANoe trace window
Definition TestStructure.h:120
Vector::BLF::TestStructure::uniqueNo
uint32_t uniqueNo
unique number of structure element (in this test run, transitive, can be used to correlate begin/end ...
Definition TestStructure.h:58
Vector::BLF::TestStructure::Action
Action
Definition TestStructure.h:61
Vector::BLF::TestStructure::ABORT
@ ABORT
Definition TestStructure.h:69
Vector::BLF::TestStructure::reservedTestStructure
uint16_t reservedTestStructure
Definition TestStructure.h:53
Vector::BLF::TestStructure::textLength
uint32_t textLength
string length in wchar_t's for text
Definition TestStructure.h:105
Vector::BLF::TestStructure::Type
Type
Definition TestStructure.h:33
Vector::BLF::TestStructure::type
uint16_t type
type of structure element, see BL_TESTSTRUCT_TYPE_xxx
Definition TestStructure.h:50
Vector::BLF::TestStructure::action
uint16_t action
indicates begin/end of structure element, see BL_TESTSTRUCT_ACTION_xxx
Definition TestStructure.h:75
Vector::BLF::TestStructure::read
void read(AbstractFile &is) override
Definition TestStructure.cpp:14
Vector::BLF::TestStructure::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition TestStructure.cpp:54
Vector::BLF::TestStructure::name
std::u16string name
name of structure element (can change between begin/end when using CAPL function TestCaseTitle or sim...
Definition TestStructure.h:115
Vector::BLF::TestStructure::executionObjectIdentify
uint32_t executionObjectIdentify
unique ID identifying the executing test module or test configuration
Definition TestStructure.h:30
Vector::BLF::TestStructure::write
void write(AbstractFile &os) override
Definition TestStructure.cpp:33
Vector::BLF::TestStructure::nameLength
uint32_t nameLength
string length in wchar_t's for name
Definition TestStructure.h:100