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

TestCasePUSDataReportingPacket_1 Class Reference

#include <TestCasePUSDataReportingPacket_1.h>

Inheritance diagram for TestCasePUSDataReportingPacket_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the functionality of the DC_PUSDataReportingPacket class for the case of a packet that only contains parameters to be sampled once per collection interval.

The test starts with the creation of one data pool to serve as the source of the data to be collected. This data pool is loaded into CC_RootObject as system data pool. Then, a data reporting packet instance is created and configured to have a collection interval equal to 3 and two parameters. The following specific checks are then performed:<ol> The correctness of the class identifier is checked. It is checked that the component is initially not configured. The maximum number of fixed-length array is set and the correctness of the set operation is checked. The maximum size of the packet definition buffer is set and the correctness of the set operation is checked. The maximum size of the packet value buffer is set and the correctness of the set operation is checked. It is checked that the component is now configured. It is checked that the component is disabled. The packet definition is loaded and the success of the load operation is checked. Three consecutive update requests are sent to the packet each followed by a data acquisition request. It is checked that in all three cases the data acquisition service reports: "no telemetry data". The component is enabled and the correctness of the new enable status is checked. Two consecutive update requests are sent to the packet each followed by a data acquisition request. It is checked that in both cases the data acquisition service reports: "no telemetry data". The values of the data items in the data pool are updated and then a third update request is sent to the packet followed by a data acquisition request. It is checked that the data acqusition service now returns the correct values of the data pool items. It is checked that the fast version of the data acquisition service is provided. The data in the packet are acquired and checked again using the fast version of the data acquisition service. The values of the data pool items are updated. Three more update-acquisition cycles are executed and it is checked that the data returned by the component are correct. A new report definition packet is loaded with the following characteristics: collection interval equal to 2, 1 single paramater. Two update-acqusition cycles are executed and it is checked that the data returned by the component are correct. Non-nominal behaviour check: it is attempted to load a packet definition that exceeds the maximum allowed size and it is checked that the correct event is generated. This test case uses the DC_SampleFullDataPool as system data pool. The implementation of the test case assumes the following about this data pool:<ul> The data pool contains at least two data pool items with identifiers 1 and 2. The data pool item with identifier equal to 1 is of type TD_Integer. The data pool item with identifier equal to 2 is of type TD_Float.

See also:
DC_PUSDataReportingPacket

DC_SampleFullDataPool

Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

Definition at line 69 of file TestCasePUSDataReportingPacket_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCasePUSDataReportingPacket_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 29 of file TestCasePUSDataReportingPacket_1.cpp.


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