RobotTestingFramework
2.0.1
Robot Testing Framework
src
robottestingframework
include
robottestingframework
FixtureManager.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_FIXTUREMANAGER_H
23
#define ROBOTTESTINGFRAMEWORK_FIXTUREMANAGER_H
24
25
#include <
robottestingframework/TestMessage.h
>
26
#include <
robottestingframework/TestResult.h
>
27
28
#include <string>
29
30
namespace
robottestingframework
{
31
35
class
FixtureEvents
36
{
37
public
:
45
virtual
void
fixtureCollapsed
(
TestMessage
reason) = 0;
46
};
47
48
63
class
FixtureManager
64
{
65
public
:
72
FixtureManager
(std::string param =
""
);
73
81
FixtureManager
(
FixtureEvents
* dispatcher,
82
std::string param =
""
);
83
87
virtual
~
FixtureManager
();
88
96
bool
setup();
97
104
virtual
bool
setup(
int
argc,
char
** argv);
105
109
virtual
void
tearDown();
110
117
virtual
bool
check();
118
123
void
setDispatcher(
FixtureEvents
* dispatcher);
124
129
FixtureEvents
* getDispatcher();
130
137
void
setParam(
const
std::string param);
138
144
std::string getParam();
145
146
private
:
147
std::string
param
;
148
FixtureEvents
*
dispatcher
;
149
};
150
151
}
// namespace robottestingframework
152
153
#endif // ROBOTTESTINGFRAMEWORK_FIXTUREMANAGER_H
robottestingframework::FixtureEvents::fixtureCollapsed
virtual void fixtureCollapsed(TestMessage reason)=0
fixtureCollapsed is called by a fixture manager to inform the test suite that the corresponding fixtu...
robottestingframework
Definition:
Arguments.h:25
robottestingframework::FixtureEvents
class FixtureEvents
Definition:
FixtureManager.h:35
robottestingframework::TestMessage
A formated message with details.
Definition:
TestMessage.h:32
robottestingframework::FixtureManager::param
std::string param
Definition:
FixtureManager.h:147
TestMessage.h
robottestingframework::FixtureManager::dispatcher
FixtureEvents * dispatcher
Definition:
FixtureManager.h:148
TestResult.h
robottestingframework::FixtureManager
The FixtureManager can be used to to setup any fixture which is required for the tests before executi...
Definition:
FixtureManager.h:63
Generated on Tue Nov 3 2020 02:17:26 for RobotTestingFramework by
1.8.13