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

TestCaseDummyTelecommand_1 Class Reference

#include <TestCaseDummyTelecommand_1.h>

Inheritance diagram for TestCaseDummyTelecommand_1:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the basic services offered by telecommands as implemented by the DC_DummyTelecommand class.

An instance of this class is created and the following specific tests are performed:

  1. The correctness of the class identifier is verified.
  2. It is verified that the telecommand is not configured.
  3. It is verified that the default value of the "time tag" attribute is: 0.
  4. It is verified that the telecommand identifier is equal to the instance identifier.
  5. It is verified that the telecommand type is equal to the class identifier.
  6. It is verified that the telecommand sub-type is equal to zero.
  7. It is verified that the telecommand acknowledge level is equal to zero.
  8. The time tag value is set and read back and it is checked that the read-back value is correct.
  9. It is verified that the configuration service of the telecommand now reports "telecommand is configured".
  10. The value of the "in use" attribute is changed to "telecommand is in use" and it is verified that this operation is correctly performed.
  11. It is verified that the initial value of the execution counter is equal to zero.
  12. It is verified that the number of raw data is zero.
  13. It is verified that the telecommand execution check returns "telecommand can execute".
  14. It is verified that the telecommand validity check returns "telecommand is valid".
  15. Two execution requests are sent to the telecommand and it is verified that the execution counter is incremented by two.
  16. The execution check return value is forced to "telecommand cannot execute" and it is verified that this is reflected in the return value of the execution check.
  17. The validity check return value is forced to "telecommand is not valid" and it is verified that this is reflected in the return value of the validity check.
  18. The validity check code is set and then read back and it is verified that the read-back value is correct.
  19. The execution check code is set and then read back and it is verified that the read-back value is correct.
  20. The setter methods for the telecommand identifier, the telecommand type, the telecommand subtype, the telecommand source, and the telecommand acknowledge level are called. These are dummy calls that are only useful to ensure a high degree of statement coverage for the class under test.
See also:
DC_DummyTelecommand
Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

Definition at line 65 of file TestCaseDummyTelecommand_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseDummyTelecommand_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 22 of file TestCaseDummyTelecommand_1.cpp.


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