#include <TestCaseBasicPUSTmStream_1.h>
Inheritance diagram for TestCaseBasicPUSTmStream_1:
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.
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. |
|
Check the correctness of the telemetry image written by the telemetry stream under test.
The telemetry image is assumed to start at location
Definition at line 172 of file TestCaseBasicPUSTmStream_1.cpp. |
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 29 of file TestCaseBasicPUSTmStream_1.cpp. |