SETestReport.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5class SETestCase;
6class SETestSuite;
8
9class CDM_DECL SETestReport : public Loggable
10{
11 friend class PBTestReport;//friend the serialization class
12public:
13
14 SETestReport(Logger* logger);
15 virtual ~SETestReport();
16
17 virtual void Reset(); //reset values
18 virtual void Clear(); //clear memory
19
20 bool SerializeToString(std::string& output, eSerializationFormat m) const;
21 bool SerializeToFile(const std::string& filename) const;
22 bool SerializeFromString(const std::string& src, eSerializationFormat m);
23 bool SerializeFromFile(const std::string& filename);
24
25 SETestSuite& CreateTestSuite();
26 const std::vector<SETestSuite*>& GetTestSuites() const;
27
28protected:
29 std::vector<SETestSuite*> m_testSuite;
30};
Definition: Logger.h:23
Definition: Logger.h:71
Definition: PBTestReport.h:11
static bool SerializeFromFile(const std::string &filename, SETestReport &dst)
Definition: PBTestReport.cpp:222
static bool SerializeToFile(const SETestReport &src, const std::string &filename)
Definition: PBTestReport.cpp:208
static bool SerializeToString(const SETestReport &src, std::string &output, eSerializationFormat m)
Definition: PBTestReport.cpp:202
static bool SerializeFromString(const std::string &src, SETestReport &dst, eSerializationFormat m)
Definition: PBTestReport.cpp:214
Definition: SETestCase.h:9
Definition: SETestErrorStatistics.h:13
Definition: SETestReport.h:10
std::vector< SETestSuite * > m_testSuite
Definition: SETestReport.h:29
Definition: SETestSuite.h:10

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.