#include <TestCasePUSClearDataReporting_1.h>
Inheritance diagram for TestCasePUSClearDataReporting_1:

DC_PUSClearDataReporting.
One instance of this class is created. Two data reporting telemetry packets are retrieved from the telemetry packet factory and configured with SIDs equal to SID_A and SID_B. The SID_B packet is loaded in the PUS Telemetry Mode Manager. 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 is set to 2 and its value is read back. The correctness of the read-back value is checked. The telemetry manager is loaded and the correctness of the load operation is checked. The PUS telemetry mode manager is loaded and the correctness of the load operation is checked. It is checked that the component is now configured. The telecommand is loaded with raw data representing a request to clear two telemetry packet with SID equal to SID_A and SID_B. It is checked that the validity check of the telecommand returns: "telecommand is valid". The telecommand is executed and it is checked that the two telemetry packets are now marked as "not in use" and that the SID_B packet has been unloaded from the PUS Telemetry Mode Manager. The telecommand is executed again and it is checked that this time it returns ACTION_FAILURE". Non-nominal behaviour check: an attempt is made to load the telecommand with too many SIDs and the correctness of the validity check code is checked. Non-nominal behaviour check: an attempt is made to load the telecommand with too many raw data and the correctness of the validity check code is checked. Non-nominal behaviour check: an attempt is made to load the telecommand with an inconsistent number of raw data and the correctness of the validity check code is checked. 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.
Definition at line 55 of file TestCasePUSClearDataReporting_1.h.
Public Member Functions | |
| TestCasePUSClearDataReporting_1 (void) | |
| Set the identifier and the name of the test case to, respectively, ID_PUSCLEARDATAREPORTING*10+1 and "TestCasePUSClearDataReporting_1". | |
| virtual void | runTestCase (void) |
| Execute the test case. | |
|
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 30 of file TestCasePUSClearDataReporting_1.cpp. |