SETestCase.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5class SETestSuite;
7
8class CDM_DECL SETestCase : public Loggable
9{
10 friend class PBTestReport;//friend the serialization class
12protected:
13 SETestCase(Logger* logger);
14 SETestCase(const std::string& name, Logger* logger);
15public:
16 virtual ~SETestCase();
17
18 virtual void Reset(); //reset values
19 virtual void Clear(); //clear memory
20
21 void SetName(const std::string& name);
22 std::string GetName() const;
23 SEScalarTime& GetDuration();
24 void AddFailure(std::stringstream &msg);
25 void AddFailure(const std::string& err);
26 const std::vector<std::string>& GetFailures();
27
28 SETestErrorStatistics& CreateErrorStatistic();
29 const std::vector<SETestErrorStatistics*>& GetErrorStatistics() const;
30
31protected:
32 std::string m_Name;
34
35 std::vector<std::string> m_Failure;
36 std::vector<SETestErrorStatistics*> m_CaseEqualsErrors;
37};
Definition: Logger.h:23
Definition: Logger.h:71
Definition: PBTestReport.h:11
Definition: SEScalarTime.h:28
Definition: SETestCase.h:9
std::vector< SETestErrorStatistics * > m_CaseEqualsErrors
Definition: SETestCase.h:36
SEScalarTime * m_Duration
Definition: SETestCase.h:33
friend SETestSuite
Definition: SETestCase.h:11
std::vector< std::string > m_Failure
Definition: SETestCase.h:35
std::string m_Name
Definition: SETestCase.h:32
Definition: SETestErrorStatistics.h:13
Definition: SETestSuite.h:10

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.