|
RobotTestingFramework
2.0.1
Robot Testing Framework
|
Class TextOutputter saves the results of the test collected by a TestResultCollector in a plain text file. More...
#include <robottestingframework/TextOutputter.h>
Public Member Functions | |
| TextOutputter (TestResultCollector &collector, bool verbose=false) | |
| TextOutputter constructor. More... | |
| virtual | ~TextOutputter () |
| ~TextOutputter destructor More... | |
| bool | write (std::string filename, bool summary, TestMessage *errorMsg=nullptr) |
| write Write the results of the test in a text file. More... | |
Private Attributes | |
| bool | verbose |
| TestResultCollector & | collector |
Class TextOutputter saves the results of the test collected by a TestResultCollector in a plain text file.
The results are written with the same order collected by the TestResultCollector.
Here's an example of using a TextOutputter:
Definition at line 43 of file TextOutputter.h.
| robottestingframework::TextOutputter::TextOutputter | ( | TestResultCollector & | collector, |
| bool | verbose = false |
||
| ) |
TextOutputter constructor.
| collector | an instance of a TestResultCollector which holds the results of the test |
| verbose | enables the verbose mode. If true, the source file and the line number where the messages are issued by the tests will be written to the output file. The verbose mode is disabled by default. |
|
virtual |
~TextOutputter destructor
| bool robottestingframework::TextOutputter::write | ( | std::string | filename, |
| bool | summary, | ||
| TestMessage * | errorMsg = nullptr |
||
| ) |
write Write the results of the test in a text file.
| filename | the name of the text file. If an instance of the TestMesagge is given to the function, it will return the error message in case of failure. |
| errorMsg | a pointer to a TestMessage to return the error message in case of failure. It can be left unassigned if it is not required. |
|
private |
Definition at line 77 of file TextOutputter.h.
|
private |
Definition at line 76 of file TextOutputter.h.
1.8.13