Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

TestCaseSimpleChangeProfile_1 Class Reference

#include <TestCaseSimpleChangeProfile_1.h>

Inheritance diagram for TestCaseSimpleChangeProfile_1:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the functionality of the MonitoringProfile abstract class as they are implemented in the SimpleChangeProfile concrete class.

Additionally, the specific functionalities of the SimpleChangeProfile are also checked.

One instance of the SimpleChangeProfile is created and the following specific tests are performed:

  1. The correctness of the class identifier is verified.
  2. It is verified that the monitoring check of the profile component is initially enabled.
  3. A reference value is loaded in the simple change profile and it is verified that the load operation is correctly performed.
  4. A test value identical to the reference value is passed through the simple change profile and it is verified that the monitoring check service reports "no deviation from profile detected".
  5. A test value different from the reference value is passed through the simple change profile and it is verified that the monitoring check service reports "deviation from profile detected" and that an event report has been created to record the profile violation.
  6. Non-nominal behaviour check: it is checked that the monitoring check with a real-valued argument reports "deviation from profile detected".
  7. The monitoring is disabled and it is verified that the enable status is correctly reported.
  8. A test value different from the reference value is passed through the disabled simple change profile and it is verified that the monitoring check service reports "no deviation from profile detected" and that no event reports are created.
See also:
DC_SimpleChangeProfile
Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

Definition at line 49 of file TestCaseSimpleChangeProfile_1.h.

Public Member Functions

 TestCaseSimpleChangeProfile_1 (void)
 Set the identifier and the name of the test case to, respectively, ID_SIMPLECHANGEPROFILE*10+1 and "TestCaseSimpleChangeProfile_1".

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseSimpleChangeProfile_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 29 of file TestCaseSimpleChangeProfile_1.cpp.


The documentation for this class was generated from the following files:
Copyright 2003 P&P Software GmbH - All Rights Reserved