
Learn testing with TPT by configuring Simulink model, executing test cases in TDD with step list and Automaton methods, and using imports to link tests and signal viewer for reports.
Navigate the TPT GUI from the start menu to the welcome window and project view. Explore test cases and assessments, and learn to save, open, and configure settings.
Configure the platform for model-based testing by creating a platform configuration, selecting Matlab Simulink, mapping inputs A and B to output C, and generating the test frame.
Channel
Wait
Compare
Create an automaton time partition test case using graphical editor, define initial and final states, testlets, and transitions, and learn to template test cases, reference variants, and handle multi-input actions.
Organize in folders
Filter and search
Test Sets
Test Case Status
Philosophy
The test assessment follows the test execution and they are independent.
Both processes are strictly separated and completely independent of each other.
A test case is designed and executed and all specified data is recorded. Then, the recorded data is assessed according to the check rules specified in the assesslets
Assessment types:
using Compare steps in test modeling step lists
GUI assesslets
script-based evaluation
Test Invariance
The evaluation of the test by means of a GUI or Script assesslet can either be done individually or as an invariant test, independently of the individual test case.
Explore the compare step, the first and easiest assessment in model-based testing with TPT, configuring preconditions, inputs, outputs, operators, and tolerance.
Explore the condition tree in the GI assessment type, building nested check rules, bound checks, signal comparisons, and a new signal rule to define complex test conditions.
Master min max comparison in model based testing with TPT to verify signal bounds, observe deviations, and import min max definitions for A, B, and C booleans.
Discover how the timeout assistant provides a sanity check by flagging test cases that reach the timeout, fail, or stay inconclusive, using weight steps and duration insights.
Explore trigger rule in model based testing, comparing while condition is true and trigger mode, and learn to define interval, start/stop conditions, then/else checks, and ignore intervals across test cases.
Explore how to write script-based assessments in model-based testing with TPT, using test conditions via assert always and check always, plus preconditions with during intervals and assessment variables.
Assesslets Activation/De-activation
Common Assesslet Settings
Learn to automatically generate test cases for automata by combining states, inputs, and transitions, using variant and merge options to avoid duplicates, and define transitions with sample time or default.
Learn how to perform requirement checking in dvt using tbbt's requirement.checked, supplying a requirement id and verdict to validate each case and document true/false outcomes.
Learn to update requirements and create filtered requirement sets in model based testing with TPT, by adding type and status attributes and tracking new versus changed items.
Explore execution configuration to set platform, test set, and report format, including HTML embedded resources or HTML with PDF, and manage test cases, test sets, and report and data directories.
Explore automata transitions in model based testing with TPT, refining transition conditions, test inputs, and timing to achieve precise true-true versus true-false behaviors and controlled test durations.
Navigate the default activity reports in model-based testing with tpt, exploring the overview and test reports, requirement coverage, and how linking requirements to test cases affects results.
Navigate the signal viewer in model based testing with tpt, opening test cases, dragging signals to axes, and analyzing section activations and checks across cases.
Debug with the test frame by executing root test cases, loading results, and stepping through inputs A and B to inspect subsystem signals and outputs.
Implement and practice a model based testing workflow with a gear control model that maps speed to gear outputs via a state flow model and parameters v1, v2, v3.
Develop test cases for the gear selector using the automaton method in model based testing with TPT, defining states, transitions, and ramps to model acceleration and deceleration across gears.
use the modification view to compare the current opened project with a selected project
Save the TPT project in "TPTPRJ" extension
set up VScode
Compare
Testing is very important activity during software development process.
This course is a basic overview of the testing work flow in TPT. The impact of this course will be increased by as much hands on practice you will have. This course also assumes little prior knowledge about Simulink Models. So enjoy the course and we hope to teach you as much as we can. This will give you the basis of knowledge to begin the journey on the road to becoming proficient in testing using TPT. Stay tuned for later more advanced courses that will be available on Udemy. Again thank you for choosing to learn with us and we hope to provide you with the best classes and knowledge that we know how to do.
Here's a glimpse of what you'll gain from our course:
Platform Configuration
will configure Simulink platform in TPT
Test Case Design
Step List
Automatons
how to create a test case using step list or automatons methods.
Test Case Generation
Generate from values
Generate from variants
Test Case Management
Test Set definition
Test cases status
Filter test cases
organize test cases in folders
test case details
Assessments
use compare step to assess test cases
use script assesslet to assess test cases
Requirements
Import requirements from excel sheet
Create the link between the test cases and requirements
Create the link between the assesslets and requirements
use scripting function to check the requirements
Execution
explore the execution configuration
get insights from the build progress window
get insights from the generated report
use the signal viewer
Gear Selector Project
Implement what you have learned