RobotTestingFramework 2.0.1
Robot Testing Framework
Loading...
Searching...
No Matches
ResultEvent.h
Go to the documentation of this file.
1/*
2 * Robot Testing Framework
3 *
4 * Copyright (C) 2015-2019 Istituto Italiano di Tecnologia (IIT)
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21
22#ifndef ROBOTTESTINGFRAMEWORK_RESULTEVENT_H
23#define ROBOTTESTINGFRAMEWORK_RESULTEVENT_H
24
27
28namespace robottestingframework {
29
36{
37public:
42 test(nullptr)
43 {
44 }
45
49 virtual ~ResultEvent() = default;
50
61
66 const Test* getTest()
67 {
68 return test;
69 }
70
76 {
77 return message;
78 }
79
80private:
81 const Test* test;
83};
84
85
90{
91public:
93 ResultEvent(test, msg)
94 {
95 }
96};
97
98
103{
104public:
106 ResultEvent(test, msg)
107 {
108 }
109};
110
115{
116public:
118 ResultEvent(test, msg)
119 {
120 }
121};
122
127{
128public:
130 ResultEvent(test, msg)
131 {
132 }
133};
134
139{
140public:
142 ResultEvent(test, msg)
143 {
144 }
145};
146
151{
152public:
154 ResultEvent(test, msg)
155 {
156 }
157};
158
159
164{
165public:
167 ResultEvent(test, msg)
168 {
169 }
170};
171
172} // namespace robottestingframework
173
174#endif // ROBOTTESTINGFRAMEWORK_TESTRESUTEVENT_H
The ResultEventEndSuite class keeps a test suite ending event.
ResultEventEndSuite(const Test *test, TestMessage msg)
The ResultEventEndTest class keeps a test ending event.
ResultEventEndTest(const Test *test, TestMessage msg)
The ResultEventError class keeps a test error event.
ResultEventError(const Test *test, TestMessage msg)
The ResultEventFailure class keeps a failure event.
ResultEventFailure(const Test *test, TestMessage msg)
The ResultEventReport class keeps a test report event.
Definition ResultEvent.h:90
ResultEventReport(const Test *test, TestMessage msg)
Definition ResultEvent.h:92
The ResultEventStartSuite class keeps a test suite starting event.
ResultEventStartSuite(const Test *test, TestMessage msg)
The ResultEventStartTest class keeps a test starting event.
ResultEventStartTest(const Test *test, TestMessage msg)
The ResultEvent class is used by a test collector to collect the result of the tests and the correspo...
Definition ResultEvent.h:36
TestMessage & getMessage()
getMessage get the corresponding message
Definition ResultEvent.h:75
ResultEvent()
ResultEvent constructor.
Definition ResultEvent.h:41
virtual ~ResultEvent()=default
~ResultEvent Destructor
const Test * getTest()
getTest get the test
Definition ResultEvent.h:66
ResultEvent(const Test *test, TestMessage msg)
ResultEvent constructor.
Definition ResultEvent.h:56
A formated message with details.
Definition TestMessage.h:33
The simplest form of a test unit.
Definition Test.h:35