SETestSuite.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5class SETestCase;
6class SETestReport;
8
9class CDM_DECL SETestSuite : public Loggable
10{
11 friend class PBTestReport;//friend the serialization class
13protected:
14 SETestSuite(Logger* logger);
15public:
16 virtual ~SETestSuite();
17
18 virtual void Reset(); //reset values
19 virtual void Clear(); //clear memory
20
21public:
22
23 void SetName(const std::string& Name);
24 std::string GetName() const;
25
26 void PerformSuite(bool Performed);
27 bool PerformedSuite() const;
28
29 const SEScalarTime& GetDuration() const;
30
31 std::vector<std::string>& GetRequirements();
32
33 SETestCase& CreateTestCase(const std::string& name="");
34 const std::vector<SETestCase*>& GetTestCases() const;
35
36 size_t GetNumberOfErrors() const;
37
38protected:
39
41 std::string m_Name;
42 std::vector<std::string> m_Requirements;
43 std::vector<SETestErrorStatistics*> m_SuiteEqualError;
44 std::vector<SETestCase*> m_TestCase;
46};
Definition: Logger.h:23
Definition: Logger.h:71
Definition: PBTestReport.h:11
Definition: SEScalarTime.h:28
Definition: SETestCase.h:9
Definition: SETestErrorStatistics.h:13
Definition: SETestReport.h:10
Definition: SETestSuite.h:10
bool m_Performed
Definition: SETestSuite.h:40
std::string m_Name
Definition: SETestSuite.h:41
SEScalarTime * m_Time
Definition: SETestSuite.h:45
std::vector< SETestCase * > m_TestCase
Definition: SETestSuite.h:44
friend SETestReport
Definition: SETestSuite.h:12
std::vector< std::string > m_Requirements
Definition: SETestSuite.h:42
std::vector< SETestErrorStatistics * > m_SuiteEqualError
Definition: SETestSuite.h:43

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.