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

TestCaseBasicPUSTmStream_1 Class Reference

#include <TestCaseBasicPUSTmStream_1.h>

Inheritance diagram for TestCaseBasicPUSTmStream_1:

TestCaseWithFactories TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Check the functionality of the DC_BasicPUSTmStream class.

An instance of this class is created and a sample telemetry packet (instance of class DC_DummyPUSTelemetryPacket) is retrieved from the telemetry packet factory. The following specific checks are then performed:<ol> The correctness of the class identifier is checked. It is checked that the TM stream is initially not configured. The value of the stream capacity is set and read back. The correctness of the read-back value is checked. The value of the start address of the telemetry write area is set and read back. The correctness of the read-back value is checked. It is checked that the TM stream is now configured. The value of the packet counter is retrieved and it is checked that is equal to zero. A telemetry packet is written to the stream and the correctness of the write operation is checked. It is checked that the packet counter and the sequence counter are incremented by one after the write operation. The packet is repeatedly written until the telemetry write area is filled. It is checked that a write operation results in the generation of the correct event report. The telemetry area is reset and it is checked that the next write request executes successfully. It is checked that the packet counter and the write counters are reset to 0 and 1, respectively. The last two checks are repeated using a flush operation instead of a reset operation and it is checked that the outcome is the same.

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

Definition at line 49 of file TestCaseBasicPUSTmStream_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.

bool checkTmImage (unsigned int start, unsigned char value)
 Check the correctness of the telemetry image written by the telemetry stream under test.


Member Function Documentation

bool TestCaseBasicPUSTmStream_1::checkTmImage unsigned int  start,
unsigned char  value
 

Check the correctness of the telemetry image written by the telemetry stream under test.

The telemetry image is assumed to start at location start in the telemetry write area and the value of the application data generated by the telemetry packet is assumed to be value.

Parameters:
start the start location of the telemetry image
value the value of the application data
Returns:
true if the telemetry image is correct, false otherwise

Definition at line 172 of file TestCaseBasicPUSTmStream_1.cpp.

void TestCaseBasicPUSTmStream_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 29 of file TestCaseBasicPUSTmStream_1.cpp.


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