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

TestCaseDummyManoeuvre_1 Class Reference

#include <TestCaseDummyManoeuvre_1.h>

Inheritance diagram for TestCaseDummyManoeuvre_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the services implemented by the Manoeuvre class.

Since this class is abstract, the verification is performed upon its concrete subclass DC_DummyManoeuvre. One instance of this class is created and the following tests are performed upon it:

  1. The correctness of the class identified is verified.
  2. It is verified that the manoeuvre is enabled at creation.
  3. It is verified that the continuation check code is equal to zero.
  4. It is verified that the inUse flag at creation has value: "not in use".
  5. It is verified that the isExecuting flag at creation has value: "not executing".
  6. It is verified that the isSuspended flag at creation has value: "not suspended".
  7. The manoeuvre is disabled and it is verified that the change in enable status is correctly reported by the manoeuvre.
  8. The inUse status of the manoeuvre is changed to "manoeuvre in use" and it is verified that the status change is correctly reported.
  9. The isSuspended status of the manoeuvre is changed to "manoeuvre is suspended" and it is verified that the status change is correctly reported.
  10. It is verified that the correct event is generated to record the supension of the manoeuvre.
  11. The isSuspended status is changed back to "not suspended" and it is verified that the correct event is generated to record the resumption of the manoeuvre.
  12. It is verified that its start check reports: "manoeuvre cannot start" (the manoeuvre is still disabled).
  13. The manoeuvre is enabled and it is verified that its start check now reports: "manoeuvre can start".
  14. The initialization and continuation actions are executed once and it is verified that the isExecuting flag changes its value to: "manoeuvre is executing".
  15. It is verified that the correct event is generated to record the start of the execution of the manoeuvre.
  16. It is verified that the continuation check of the manoeuvre reports: "manoeuvre can continue".
  17. It is verified that the termination check of the manoeuvre reports "manoeuvre has terminated execution".
  18. An abort request is issued to the manoeuvre and it is verified that its isExecuting flag changes its value to: "manoeuvre is not executing".
  19. It is verified that the correct event is generated to record the abort of the nanoeuvre.
  20. The manoeuvre is again brought into "executing" status by executing its initialization and continuation actions. The termination action is then executed and it is verified that the isExecuting flag changes its value to: "manoeuvre is not executing".
  21. It is verified that the correct event is generated to record the termination of the manoeuvre.
See also:
DC_DummyManoeuvre

Manoeuvre

Author:
Alessandro Pasetti (P&P Software GmbH)

Roberto Totaro

Version:
1.1

Definition at line 74 of file TestCaseDummyManoeuvre_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseDummyManoeuvre_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 22 of file TestCaseDummyManoeuvre_1.cpp.


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