#include <TestCasePUSDataReportingPacket_3.h>
Inheritance diagram for TestCasePUSDataReportingPacket_3:
DC_PUSDataReportingPacket
class for the case of a packet that contains one set of parameters sampled once per collection interval and two fixed-length arrays 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, one parameter to be sampled once per collection interval, one fixed-length array with two parameters and repetition count equal to 2 (ie. two samples per collection interval), and one fixed-length array with one parameter and repetition count equal to 3.The data reporting packet is configured and enabled and the following specific checks are performed upon it:<ol> Five consecutive update requests are sent to the packet. Each is followed by a data acquisition request. It is checked that in all cases, the data acquisition service reports: "no telemetry data". A sixth update request is executed followed by a data acquisition request. The correctness of the data returned by the data acqusition service is checked. A new set of six update-acquisition requests is performed. 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 that will cause the packet value buffer to overflow 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 four 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
. The data pool item with identifier equal to 4 is of type TD_Integer
. The data pool item with identifier equal to 5 is of type TD_Float
.
Definition at line 57 of file TestCasePUSDataReportingPacket_3.h.
Public Member Functions | |
TestCasePUSDataReportingPacket_3 (void) | |
Set the identifier and the name of the test case to, respectively, ID_PUSDATAREPORTINGPACKET*10+3 and "TestCasePUSDataReportingPacket_3". | |
virtual void | runTestCase (void) |
Execute the test case. |
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 29 of file TestCasePUSDataReportingPacket_3.cpp. |