<
    Kitware and KbPort announce the launch of SimPulse
×
SETestCase.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 class SETestSuite;
7 
8 class CDM_DECL SETestCase : public Loggable
9 {
10  friend class PBTestReport;//friend the serialization class
11  friend SETestSuite;
12 protected:
13  SETestCase(Logger* logger);
14  SETestCase(const std::string& name, Logger* logger);
15 public:
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 
31 protected:
32  std::string m_Name;
34 
35  std::vector<std::string> m_Failure;
36  std::vector<SETestErrorStatistics*> m_CaseEqualsErrors;
37 };
std::string m_Name
Definition: SETestCase.h:32
Definition: Logger.h:66
Definition: SETestSuite.h:9
std::vector< SETestErrorStatistics * > m_CaseEqualsErrors
Definition: SETestCase.h:36
Definition: PBTestReport.h:10
Definition: Logger.h:18
Definition: SETestCase.h:8
Definition: SETestErrorStatistics.h:12
std::vector< std::string > m_Failure
Definition: SETestCase.h:35
Definition: SEScalarTime.h:27
friend SETestSuite
Definition: SETestCase.h:11
SEScalarTime * m_Duration
Definition: SETestCase.h:33

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.