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

TestConstants.h File Reference


Detailed Description

This file defines all the constants used in the test classes of the OBS Framework.

Constants are defined using the const construct provided by the C++ language. They are not defined using the #define construct of the C language. Constants used in the operational classes are defined in a dedicated header file (Constants).

Definition in file TestConstants.h.

Go to the source code of this file.

Variables

const bool TEST_SUCCESS = true
 Return value of a test case whose execution was successful.

const bool TEST_FAILURE = false
 Return value of a test case whose execution failed.

const bool INITIALIZATION_SUCCESS = true
 Return value of a test case whose set up service succeeded.

const bool INITIALIZATION_FAILURE = false
 Return value of a test case whose set up service failed.

const bool SHUTDOWN_SUCCESS = true
 Return value of a test case whose shut down service succeeded.

const bool SHUTDOWN_FAILURE = false
 Return value of a test case whose shut down service failed.

const int MAX_TEST_CASES_IN_SUITE = 200
 Max number of test cases that can be loaded in a test suite.

const int EVT_REP_SIZE = 14
 Event repository size used for the regression tests.

const float EPS_FLOAT = (float)0.00001
 A small float value used when comparing float values.

const double EPS_DOUBLE = 0.000001
 A small float value used when comparing double values.

const char *const TEST_FILE_NAME_1 = "class"
 Constant string used in the construction of the name of the documentation file for the test cases.

const char *const TEST_FILE_NAME_2 = ""
 Constant string used in the construction of the name of the documentation file for the test cases.

const int MAX_TEST_FILE_NAME_LENGTH = 100
 Maximum length of the name of a test case.

const char *const TEST_TRACER_LOG_FILE = "TestTracerLogFile.txt"
 Constant string defining the name of the log file used by the test tracer component.

TD_TelemetryType const TEST_TM_TYPE = 101
 Telemetry packet type used in the test telemetry packet defined by class DC_DummyPUSTelemetryPacket.

TD_TelecommandType const TEST_TC_TYPE = 91
 Telecommand packet type used in the test telecommand packet defined by class DC_DummyPUSTelecommand.

TD_TelemetrySubType const TEST_TM_SUBTYPE = 102
 Telemetry packet subtype used in the test telemetry packet defined by class DC_DummyPUSTelemetryPacket.

TD_TelecommandSubType const TEST_TC_SUBTYPE = 92
 Telecommand packet subtype used in the test telecommand packet defined by class DC_DummyPUSTelecommand.

TD_ObsTime const TEST_TM_TIMETAG = 103
 Telemetry packet timetag used in the test telemetry packet defined by class DC_DummyPUSTelemetryPacket.

TD_TelemetryDestination const TEST_TM_DEST = 104
 Telemetry packet destination used in the test telemetry packet defined by class DC_DummyPUSTelemetryPacket.

TD_TelecommandSource const TEST_TC_SOURCE = 94
 Telecommand packet source used in the test telecommand packet defined by class DC_DummyPUSTelecommand.

TD_TelecommandId const TEST_TC_ID = 95
 Telecommand identifier used in the test telecommand packet defined by class DC_DummyPUSTelecommand.

TD_TelemetryDestination const TEST_TM_DEF_DEST = 111
 Telemetry packet default destination used in the test cases.

TD_APID const TEST_TM_APID = 105
 APID of the source application of the PUS telemetry packets used in the test cases.

TD_APID const TEST_TC_APID = 106
 APID of the destination application of the PUS telecommand packets used in the test cases.

unsigned int const PUS_DRP_MAX_FA = 4
 Maximum number of fixed-length array of the DC_PUSDataReportingPacket items in the telemetry packet factory.

unsigned int const PUS_DRP_DEF_BUF_SIZE_LARGE = 100
 Large value of the definition buffer size of the DC_PUSDataReportingPacket items in the telemetry packet factory.

unsigned int const PUS_DRP_DEF_BUF_SIZE_SMALL = 50
 Small value of the definition buffer size of the DC_PUSDataReportingPacket items in the telemetry packet factory.

unsigned int const PUS_DRP_VAL_BUF_SIZE_LARGE = 100
 Large value of the value buffer size of the DC_PUSDataReportingPacket items in the telemetry packet factory.

unsigned int const PUS_DRP_VAL_BUF_SIZE_SMALL = 50
 Large value of the value buffer size of the DC_PUSDataReportingPacket items in the telemetry packet factory.

unsigned int const TC_MAN_PEND_TC_LIST_SIZE = 5
 Size of the pending telecommand list in the telecommand manager.

unsigned int const TM_MAN_IMMEDIATE_QUEUE = 5
 Size of the immediate disptach queue in the telemetry manager.

unsigned int const TM_MODE_MAN_MAX_N_PACKETS = 5
 Maximum number of PUS packets that can be loaded in a PUS telemetry mode manager.

unsigned int const MAN_MAN_PENDING_MAN_LIST_SIZE = 5
 Size of the pending manoeuvre list in the manoeuvre manager.

unsigned int const TC_COMMAND_AREA_MAX_N_TC = 3
 Maximum number of telecommands for the DC_BasicPUSTcLoader.

unsigned int const TC_COMMAND_AREA_MAX_TC_LEN = 100
 Maximum length of a telecommand for the DC_BasicPUSTcLoader.

unsigned int const TM_LOGGER_BUFFER_CAPACITY = 10
 Capacity of the telemetry buffer in the DC_PUSTmLogger.

unsigned int const TM_LOGGER_MAX_TM_LENGTH = 40
 Maximum length of the application data of a telemetry packet in the telemetry logger stream (class DC_PUSTmLogger).

unsigned int const PUS_EVT_REP_SIZE = 15
 Size of the PUS event repository (instance of class DC_PUSEventRepository).

TD_TelecommandSource const DEF_PUS_TC_SOURCE = 13
 Default value of telecommand packet source used in PUS tests.

TD_PUSNumberMemBlocks const PUS_NUMBER_MEM_BLOCKS = 3
 Maximum number of memory blocks that can be handled by memory management telecommands and telemetry packets.

TD_PUSMemLength const PUS_MEM_BUFFER_LENGTH = 50
 Size of the internal buffer used by the memory management telecommands and telemetry packets.


Variable Documentation

TD_TelecommandSource const DEF_PUS_TC_SOURCE = 13
 

Default value of telecommand packet source used in PUS tests.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 295 of file TestConstants.h.

const double EPS_DOUBLE = 0.000001
 

A small float value used when comparing double values.

For instance, when comparing a and b (both double variables), the comparison is really made between abs(a-b) and EPS_DOUBLE. This helps prevent false triggers due to rounding and other numerical precision effects.

See also:
EPS_FLOAT

Definition at line 92 of file TestConstants.h.

const float EPS_FLOAT = (float)0.00001
 

A small float value used when comparing float values.

For instance, when comparing a and b (both float variables), the comparison is really made between abs(a-b) and EPS_FLOAT. This helps prevent false triggers due to rounding and other numerical precision effects.

See also:
EPS_DOUBLE

Definition at line 83 of file TestConstants.h.

const int EVT_REP_SIZE = 14
 

Event repository size used for the regression tests.

See also:
DC_EventRepository

Definition at line 74 of file TestConstants.h.

const bool INITIALIZATION_FAILURE = false
 

Return value of a test case whose set up service failed.

See also:
TestCase::setUpTestCase

Definition at line 50 of file TestConstants.h.

const bool INITIALIZATION_SUCCESS = true
 

Return value of a test case whose set up service succeeded.

See also:
TestCase::setUpTestCase

Definition at line 44 of file TestConstants.h.

unsigned int const MAN_MAN_PENDING_MAN_LIST_SIZE = 5
 

Size of the pending manoeuvre list in the manoeuvre manager.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 258 of file TestConstants.h.

const int MAX_TEST_CASES_IN_SUITE = 200
 

Max number of test cases that can be loaded in a test suite.

See also:
TestSuite

Definition at line 68 of file TestConstants.h.

const int MAX_TEST_FILE_NAME_LENGTH = 100
 

Maximum length of the name of a test case.

See also:
doubleUnderscore

Definition at line 115 of file TestConstants.h.

unsigned int const PUS_DRP_DEF_BUF_SIZE_LARGE = 100
 

Large value of the definition buffer size of the DC_PUSDataReportingPacket items in the telemetry packet factory.

See also:
TestCaseGenericSetUp::setUpTestCase

Definition at line 212 of file TestConstants.h.

unsigned int const PUS_DRP_DEF_BUF_SIZE_SMALL = 50
 

Small value of the definition buffer size of the DC_PUSDataReportingPacket items in the telemetry packet factory.

See also:
TestCaseGenericSetUp::setUpTestCase

Definition at line 219 of file TestConstants.h.

unsigned int const PUS_DRP_MAX_FA = 4
 

Maximum number of fixed-length array of the DC_PUSDataReportingPacket items in the telemetry packet factory.

See also:
TestCaseGenericSetUp::setUpTestCase

Definition at line 205 of file TestConstants.h.

unsigned int const PUS_DRP_VAL_BUF_SIZE_LARGE = 100
 

Large value of the value buffer size of the DC_PUSDataReportingPacket items in the telemetry packet factory.

See also:
TestCaseGenericSetUp::setUpTestCase

Definition at line 226 of file TestConstants.h.

unsigned int const PUS_DRP_VAL_BUF_SIZE_SMALL = 50
 

Large value of the value buffer size of the DC_PUSDataReportingPacket items in the telemetry packet factory.

See also:
TestCaseGenericSetUp::setUpTestCase

Definition at line 233 of file TestConstants.h.

unsigned int const PUS_EVT_REP_SIZE = 15
 

Size of the PUS event repository (instance of class DC_PUSEventRepository).

See also:
TestCasePUSFull::setUpTestCase

Definition at line 289 of file TestConstants.h.

TD_PUSMemLength const PUS_MEM_BUFFER_LENGTH = 50
 

Size of the internal buffer used by the memory management telecommands and telemetry packets.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 308 of file TestConstants.h.

TD_PUSNumberMemBlocks const PUS_NUMBER_MEM_BLOCKS = 3
 

Maximum number of memory blocks that can be handled by memory management telecommands and telemetry packets.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 302 of file TestConstants.h.

const bool SHUTDOWN_FAILURE = false
 

Return value of a test case whose shut down service failed.

See also:
TestCase::setUpTestCase

Definition at line 62 of file TestConstants.h.

const bool SHUTDOWN_SUCCESS = true
 

Return value of a test case whose shut down service succeeded.

See also:
TestCase::setUpTestCase

Definition at line 56 of file TestConstants.h.

unsigned int const TC_COMMAND_AREA_MAX_N_TC = 3
 

Maximum number of telecommands for the DC_BasicPUSTcLoader.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 264 of file TestConstants.h.

unsigned int const TC_COMMAND_AREA_MAX_TC_LEN = 100
 

Maximum length of a telecommand for the DC_BasicPUSTcLoader.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 270 of file TestConstants.h.

unsigned int const TC_MAN_PEND_TC_LIST_SIZE = 5
 

Size of the pending telecommand list in the telecommand manager.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 239 of file TestConstants.h.

const bool TEST_FAILURE = false
 

Return value of a test case whose execution failed.

See also:
TestCase::runTestCase

Definition at line 38 of file TestConstants.h.

const char* const TEST_FILE_NAME_1 = "class"
 

Constant string used in the construction of the name of the documentation file for the test cases.

The RegressionTest program generates a test report that containts hyperlinks to the documentation file of the test cases. The construction of the hyperlinks assumes the name of the test file to be: "TEST_FILE_NAME_1"+"test name"+"TEST_FILE_NAME_2"+".html".

See also:
TEST_FILE_NAME_2

Definition at line 102 of file TestConstants.h.

const char* const TEST_FILE_NAME_2 = ""
 

Constant string used in the construction of the name of the documentation file for the test cases.

See also:
TEST_FILE_NAME_2

Definition at line 109 of file TestConstants.h.

const bool TEST_SUCCESS = true
 

Return value of a test case whose execution was successful.

See also:
TestCase::runTestCase

Definition at line 32 of file TestConstants.h.

TD_APID const TEST_TC_APID = 106
 

APID of the destination application of the PUS telecommand packets used in the test cases.

See also:
PUSTelecommand

Definition at line 198 of file TestConstants.h.

TD_TelecommandId const TEST_TC_ID = 95
 

Telecommand identifier used in the test telecommand packet defined by class DC_DummyPUSTelecommand.

See also:
DC_DummyPUSTelecommand

Definition at line 177 of file TestConstants.h.

TD_TelecommandSource const TEST_TC_SOURCE = 94
 

Telecommand packet source used in the test telecommand packet defined by class DC_DummyPUSTelecommand.

See also:
DC_DummyPUSTelecommand

Definition at line 170 of file TestConstants.h.

TD_TelecommandSubType const TEST_TC_SUBTYPE = 92
 

Telecommand packet subtype used in the test telecommand packet defined by class DC_DummyPUSTelecommand.

See also:
DC_DummyPUSTelecommand

Definition at line 149 of file TestConstants.h.

TD_TelecommandType const TEST_TC_TYPE = 91
 

Telecommand packet type used in the test telecommand packet defined by class DC_DummyPUSTelecommand.

See also:
DC_DummyPUSTelecommand

Definition at line 135 of file TestConstants.h.

TD_APID const TEST_TM_APID = 105
 

APID of the source application of the PUS telemetry packets used in the test cases.

See also:
PUSTelemetryPacket

Definition at line 191 of file TestConstants.h.

TD_TelemetryDestination const TEST_TM_DEF_DEST = 111
 

Telemetry packet default destination used in the test cases.

DC_DummyPUSTelemetryPacket.

See also:
DC_DummyPUSTelemetryPacket

Definition at line 184 of file TestConstants.h.

TD_TelemetryDestination const TEST_TM_DEST = 104
 

Telemetry packet destination used in the test telemetry packet defined by class DC_DummyPUSTelemetryPacket.

See also:
DC_DummyPUSTelemetryPacket

Definition at line 163 of file TestConstants.h.

TD_TelemetrySubType const TEST_TM_SUBTYPE = 102
 

Telemetry packet subtype used in the test telemetry packet defined by class DC_DummyPUSTelemetryPacket.

See also:
DC_DummyPUSTelemetryPacket

Definition at line 142 of file TestConstants.h.

TD_ObsTime const TEST_TM_TIMETAG = 103
 

Telemetry packet timetag used in the test telemetry packet defined by class DC_DummyPUSTelemetryPacket.

See also:
DC_DummyPUSTelemetryPacket

Definition at line 156 of file TestConstants.h.

TD_TelemetryType const TEST_TM_TYPE = 101
 

Telemetry packet type used in the test telemetry packet defined by class DC_DummyPUSTelemetryPacket.

See also:
DC_DummyPUSTelemetryPacket

Definition at line 128 of file TestConstants.h.

const char* const TEST_TRACER_LOG_FILE = "TestTracerLogFile.txt"
 

Constant string defining the name of the log file used by the test tracer component.

See also:
DC_TestTracer

Definition at line 121 of file TestConstants.h.

unsigned int const TM_LOGGER_BUFFER_CAPACITY = 10
 

Capacity of the telemetry buffer in the DC_PUSTmLogger.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 276 of file TestConstants.h.

unsigned int const TM_LOGGER_MAX_TM_LENGTH = 40
 

Maximum length of the application data of a telemetry packet in the telemetry logger stream (class DC_PUSTmLogger).

See also:
TestCasePUSFull::setUpTestCase

Definition at line 283 of file TestConstants.h.

unsigned int const TM_MAN_IMMEDIATE_QUEUE = 5
 

Size of the immediate disptach queue in the telemetry manager.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 245 of file TestConstants.h.

unsigned int const TM_MODE_MAN_MAX_N_PACKETS = 5
 

Maximum number of PUS packets that can be loaded in a PUS telemetry mode manager.

See also:
TestCasePUSFull::setUpTestCase

Definition at line 252 of file TestConstants.h.

Copyright 2003 P&P Software GmbH - All Rights Reserved