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

TestCasePUSDataReportingPacket_2 Class Reference

#include <TestCasePUSDataReportingPacket_2.h>

Inheritance diagram for TestCasePUSDataReportingPacket_2:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the functionality of the DC_PUSDataReportingPacket class for the case of a packet that contains one single fixed-length array of oversampled parameters.

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 6 and one fixed-length array with two parameters and repetition count equal to 2 (ie. two samples per collection interval). The data reporting packet is configured and enabled and the following specific checks are performed upon it:<ol> Three 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 two more update requests are sent to the packet followed by a data acquisition request. It is checked that the data acqusition service reports: "no telemetry data". A sixth update request is sent to the packet followed by a data acquisition request. The correctness of the data returned by the data acqusition service is checked. The values of the data pool items are updated and six update-acquisition cycles are executed. The correctness of the data returned by the data acqusition service is then checked. Non-nominal behaviour check: it is attempted to load a packet definition whose number of fixed-length arrays exceeds the allowed maximum 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 56 of file TestCasePUSDataReportingPacket_2.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCasePUSDataReportingPacket_2::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 29 of file TestCasePUSDataReportingPacket_2.cpp.


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