In this topic, you will learn how the TurnSignalTests are structured. You will also learn which Python scripts are required and how they interact with each other.
The following Python scripts are required on the host PC. For a detailed description of the functionalities, view the descriptions in the Python scripts themselves.
Loader script for the TurnSignalTests.
The module contains a dictionary with failure messages. To save computation time, only the key of a failure message is sent from an RTT sequence to the host PC. The key can be translated on the host PC to get the full error message.
The module contains classes which are required for storing sequence results and writing a test report:
RTTSequenceResult
TestReport
The module contains classes, functions, and dictionaries required on the host PC:
turnsignaltests
RTTMSequencesEventHandler
getTestsForExecution
loadSequence
cleanUpSequence
waitForSequenceFinished
The following Python scripts are required on the simulation platform. For a detailed description of the functionalities, view the descriptions in the Python scripts themselves.
Different RTT sequences for the TurnSignalTests demo.
This module contains different classes and functions used in the RTT sequences. The contents of the modules are independent from the turn signal model:
RTTTestFailureException
RTTTestUndefinedException
TestResult
debugPrint
increaseTimerGen
waitGen
nStateWobbleGenerator
The module contains the dictionary signalMap to map alias names to model variables.
In this module, only the alias names from signalmapping.py are used to create variable objects. If a model variable is renamed, it is sufficient to change the path in signalmapping.py.
This module contains different functions for the TurnSignalTests:
isSignalSwitchedOffGen
isSignalSwitchedOnGen
isSignalFlashingGen
checkAllSignalsSwitchedOffGen
setInitialStateGen
engineStartVoltageCharacteristicGenerator
warningLightPriorityObservatorGen
warningLightActivationObservatorGen
_SinglePulsePatternObservatorGen
pulsePatternObservatorGen
frontRearSynchronicityObservatorGen
View the following illustration to understand the program flow of the loader script:

View the following illustration to understand the program flow of the RTT sequence RTT_T010_TurnSignalLeft:

In the next step, you will learn how to start the TurnSignalTests.