RobotTestingFramework 2.0.1
Robot Testing Framework
Loading...
Searching...
No Matches
TextOutputter.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_TEXTOUTPUTTER_H
23#define ROBOTTESTINGFRAMEWORK_TEXTOUTPUTTER_H
24
25
28
29#include <string>
30
31namespace robottestingframework {
32
44{
45public:
55 bool verbose = false);
56
60 virtual ~TextOutputter();
61
71 bool write(std::string filename,
72 bool summary,
73 TestMessage* errorMsg = nullptr);
74
75private:
76 bool verbose;
78};
79
80} // namespace robottestingframework
81
82#endif // ROBOTTESTINGFRAMEWORK_TEXTOUTPUTTER_H
A formated message with details.
Definition TestMessage.h:33
The TestResultCollector class can be used to store all the events issued by the test cases,...
Class TextOutputter saves the results of the test collected by a TestResultCollector in a plain text ...
virtual ~TextOutputter()
~TextOutputter destructor
bool write(std::string filename, bool summary, TestMessage *errorMsg=nullptr)
write Write the results of the test in a text file.
TextOutputter(TestResultCollector &collector, bool verbose=false)
TextOutputter constructor.