Automatic test case generation in TPT
Automatic test case generation can ease the testing and optimize the test coverage with minimal effort.
With TPT, test cases can be generated in different ways. The methods range from simple combinatorics
to sophisticated approaches to fulfill the aim of structural coverage of test objects.

TPT uses the following elements to generate test data:

Simulink, TargetLink, C-code


Generating test cases for Simulink models, TargetLink models, and C-Code (TASMO)
To generate test data from MATLAB Simulink models or dSPACE TargetLink models,
PikeTec developed the tool “TASMO for Simulink”.

To generate test data from C-code, “TASMO for C” has been developed by PikeTec.
TASMO stands for “Testing via Automated Search for Models”.

TASMO by PikeTec generates test data by analyzing Simulink models, TargetLink models, and C-code. It finds the smallest amount of test cases to achieve the most comprehensive structural coverage (Condition Coverage, Decision Coverage) for
the model or C-code. TASMO uses a unique combination of static analysis and evolutionary algorithms to fulfill its task.

Due to efficient methods, TASMO can even generate test cases for the coverage of complex models. TASMO supports
all commonly known block types, systems with feedback, Stateflow models, structured signals, and many more.

Among other things, the test cases generated by TASMO can be used to run back-to-back tests
and regression tests to meet the requirements of safety standards like ISO 26262.

test_data_generation-1 test_data_generation-2



Generating test cases by combining variants of states, paths, and transitions
A TPT model consists of a so-called automaton that contains states variants and transition condition variants. In general, test cases are built upon combinations of different variants in TPT. These combinations can be manually specified by the user or they can be automatically generated by TPT. To automatically generate the combinations, the user needs to select the states, transitions, and path variants of an automaton that should be used for the test case generation.


Measurement data


Generating test cases from measurement data
TPT enables you to import more than one measurement file at once. For each file, a test case will be generated.
TPT can look automatically for appropriate measurement files in your file system according to the search criteria you set. Signals of a measurement file can be assigned to TPT-signals for the stimulation of the system to be tested. In case the measurement file contains also output signals, you can use them to generate back-to-back test or regression tests.
The following file formats are supported: *.csv, *.dat, *.mat, *.mf4, *.mdf, *.tptbin, and *.xls.


Dashboard recording


Generating test cases from Dashboard recordings
The Dashboard in TPT is a freely configurable, graphical user interface that is used to interact manually with the system to
be tested. Besides observing the system’s visual feedback, you can manually stimulate the system. These interactions can
be recorded during the test and are saved as human-readable test cases that can be altered afterwards.