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

TestCaseSampleMonitoredDataPool_1 Class Reference

#include <TestCaseSampleMonitoredDataPool_1.h>

Inheritance diagram for TestCaseSampleMonitoredDataPool_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the functionalities implemented by the DC_SampleMonitoredDataPool component.

An instance of the component is created and the following specific checks are performed upon it:

  1. It is verified that the class ID of the component has the correct value.
  2. It is verified that, after instantiation, the configuration service of the component reports "not configured".
  3. The data pool is configured and it is verified that the configuration service reports "configured".
  4. It is verified that the default value of the validity status is "valid".
  5. A float value is set and then read and it is verified that the value that is read back is the same as the value that was written.
  6. An integer value is set and then read and it is verified that the value that is read back is the same as the value that was written.
  7. A float value is set and then its pointer is read and it is verified that the value that was written can be correctly read from the pointer.
  8. An integer value is set and then its pointer is read and it is verified that the value that was written can be correctly read from the pointer.
  9. The validity status of a data pool item is changed and it is checked that this change is reflected in the validity status read back from the data pool.
  10. Non-nominal behaviour check: an attempt is made to set the validity status of a non-existent data pool item and it is checked that the correct event is generated.
  11. A call to method reset is performed and it is verified that a validity status previously set to "not valid" is reset to "valid".
  12. The validity status of a data pool item is switched to "not valid", its value is set and then read back and it is verified that the value that is read back is the "back up value" (i.e. the value of the data pool item before its validity status was changed. The data pool item value is read back both through the value getter method and through the data item associated to the data pool item.
  13. The validity status of the data pool item is switched back to "valid", its value is set and then read back and it is verified that the value that is read back is the "primary value" (i.e. the last value of the data pool item to be set with the setter method. The data pool item value is read back both through the value getter method and through the data item associated to the data pool item.
  14. A monitoring profile attribute is set and then read back and it is checked that the read-back value is correct.
The code for this test class - like the code for the component it checks - is automatically generated by an XSLT program. The XSLT program takes as an input an XML file (the 'Data Pool Descriptor File') that describes the structure of the data pool in the component being tested.
See also:
DC_SampleMonitoredDataPool
Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

Definition at line 61 of file TestCaseSampleMonitoredDataPool_1.h.

Public Member Functions

 TestCaseSampleMonitoredDataPool_1 ()
 Set the identifier and the name of the test case to: ID_SAMPLEMONITOREDDATAPOOL*10+1 and "TestCaseSampleMonitoredDataPool_1".

virtual void runTestCase ()
 Execute the test case.


Member Function Documentation

void TestCaseSampleMonitoredDataPool_1::runTestCase  )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 31 of file TestCaseSampleMonitoredDataPool_1.cpp.


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