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

TestCaseTelecommandManager_2 Class Reference

#include <TestCaseTelecommandManager_2.h>

Inheritance diagram for TestCaseTelecommandManager_2:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the configuration the nominal telecommand execution process 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. The third telecommand is configured to have a 0 time-tag (immediate execution) and the first two are configured to have two consecutive time tags. The test begins by creating and configuring a telecommand manager instance and by activating the telecommand loader to make it load all three dummy telecommands. The following specific tests are then executed:

  1. It is verified that the allocation counter in the dummy telecommand loader is equal to 3.
  2. It is verified that the telecommand manager reports: "three pending telecommands".
  3. The telecommand manager is activated and it is verified that the third telecommand (time tag equal to 0) is executed.
  4. It is verified that the telecommand manager reports: "two pending telecommands".
  5. It is verified that an event was created to record the unloading of the telecommand.
  6. The telecommand manager is repeatedly activated until the time tag of the first telecommand is reached and it is verified that the telecommand is executed.
  7. It is verified that the telecommand manager reports: "one pending telecommand".
  8. The telecommand manager is repeatedly activated until the time tag of the last remaining telecommand is reached and it is verified that the telecommand is executed.
  9. It is verified that the telecommand manager reports: "no pending telecommands".
  10. It is verified that the allocation counter in the dummy telecommand loader has gone back to 0.
See also:
CC_TelecommandManager

DC_DummyTelecommand

DC_DummyTelecommandLoader

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

Definition at line 57 of file TestCaseTelecommandManager_2.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseTelecommandManager_2::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 27 of file TestCaseTelecommandManager_2.cpp.


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