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

TestCaseTelecommandManager_3 Class Reference

#include <TestCaseTelecommandManager_3.h>

Inheritance diagram for TestCaseTelecommandManager_3:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the non-nominal telecommand execution implemented by the telecommand manager.

The test uses an instance of class DC_DummyTelecommandLoader as a telecommand loader and three instances of class DC_DummyTelecommand as dummy telecommands. All the telecommands have a time tag equal to zero (immediate execution). The first telecommand is configured to have an execution check that returns "cannot be executed". The second telecommand is configured to have a validity check that returns "telecommand not valid". The telecommand manager is configured with a pending telecommand list size of 2. The test begins by activating the telecommand loader twice to force it to attempt to load the first two dummy telecommands into the telecommand manager. The following specific tests are then executed:

  1. It is verified that the telecommand manager rejects the second telecommand because it fails its validity check.
  2. The telecommand loader is activated two more times and it is verified that the telecommand manager rejects the last load attempt because its pending telecommand list is full.
  3. The telecommand manager is activated and it is verified that the first telecommand is unloaded without being executed because its execution check fails.
  4. It is checked that the allocation counter in the dummy telecommand loader is back to zero.
  5. It is verified that the second telecommand is executed.
  6. The telecommands loader is activated three times and it is verified that two telecommands are loaded in the telecommand manager (the second one is rejected because it fails its validity check).
  7. The telecommands manager is reset and it is verified that the number of pending telecommands goes back to zero.
  8. It is verified that two events EVT_TC_ABORTED have been generated as a result of the reset operation.
  9. It is checked that the allocation counter in the dummy telecommand loader is back to zero.
  10. The telecommands loader is activated three times and it is verified that two telecommands are loaded in the telecommand manager (the second one is rejected because it fails its validity check).
  11. An abort request is sent to the first telecommand identified by its identifier. It is verified that only one pending telecommand is left.
  12. It is checked that the allocation counter in the dummy telecommand loader is equal to 1.
  13. It is checked that one event of type EVT_TC_ABORTED was generated.
  14. An abort request is sent to the third telecommand identified by its pointer. It is verified that there are no pending telecommand left.
  15. It is checked that the allocation counter in the dummy telecommand loader is back to zero.
  16. It is checked that one event of type EVT_TC_ABORTED was generated.
See also:
CC_TelecommandManager

DC_DummyTelecommand

DC_DummyTelecommandLoader

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

Definition at line 71 of file TestCaseTelecommandManager_3.h.

Public Member Functions

 TestCaseTelecommandManager_3 (void)
 Set the identifier and the name of the test case to, respectively, ID_TELECOMMANDMANAGER*10+3 and "TestCaseTelecommandManager_3".

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseTelecommandManager_3::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 27 of file TestCaseTelecommandManager_3.cpp.


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