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

TestCasePUSControlDataReporting_1 Class Reference

#include <TestCasePUSControlDataReporting_1.h>

Inheritance diagram for TestCasePUSControlDataReporting_1:

TestCaseWithFactories TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the functionality of the DC_PUSControlDataReporting class under nominal conditions.

The test case is configured as follows:<ul> The telemetry packet factory is retrieved. Two data reporting packet instances are created and loaded in the packet factory. The SIDs of the telemetry packets are SID_A and SID_B. One telecommand instance of type DC_PUSControlDataReporting is created. The following specific tests are then performed:<ol> The correctness of the class identifier is checked. It is checked that the telecommand component is initially not configured. The maximum number of SIDs in the telecommand component is set to 2 and the correctness of the set operation is checked. It is checked that the component is now configured. The telecommand is loaded with raw data representing a request to enable the telemetry packet with SID equal to SID_A. It is checked that the validity check of the telecommand returns: "telecommand is valid". The telecommand is executed and it is checked that telemetry packet SID_A has been enabled and that the outcome code of the telecommand is ACTION_SUCCESS. The telecommand is loaded with new raw data representing a request to disable the telemetry packet with SID equal to SID_A. It is checked that the validity check of the telecommand returns: "telecommand is valid". The telecommand is executed and it is checked that telemetry packet SID_A has been disabled and that the outcome code of the telecommand is ACTION_SUCCESS. The telecommand is loaded with raw data representing a request to enable the telemetry packets with SID equal to SID_A and SID_B. It is checked that the validity check of the telecommand returns: "telecommand is valid" and the correct validity check code is returned. The telecommand is executed and it is checked that both telemetry packets are enabled and that the outcome code of the telecommand is ACTION_SUCCESS. Non-nominal behaviour check: the telecommand is loaded with raw data representing a request to enable three telemetry packets. It is checked that the validity check of the telecommand returns: "telecommand is not valid" and the correct validity check code is returned. Non-nominal behaviour check: the telecommand is loaded with too many raw data and it is checked that the validity check of the telecommand returns: "telecommand is valid". Non-nominal behaviour check: the telecommand is loaded with inconsistent raw data and it is checked that the validity check of the telecommand returns: "telecommand is valid". The telecommand is loaded with raw data representing a request to enable two telemetry packets with SID equal to SID_A and a non-existent SID. It is checked that the validity check of the telecommand returns: "telecommand is valid". The telecommand is executed and it is checked that the outcome code of the telecommand is ACTION_FAILURE. Note that this test case uses the telemetry packet factory. It assumes that the structure of the factory is such as to allow two packets of type DC_PUSDataReportingPacket to be loaded in the factory.

See also:
DC_PUSControlDataReporting

CC_TelemetryPacketFactory

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

Definition at line 68 of file TestCasePUSControlDataReporting_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCasePUSControlDataReporting_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 29 of file TestCasePUSControlDataReporting_1.cpp.


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