Test Sequence
Create simulation testing scenarios, function calls, and assessments
Libraries:
Simulink Test
Description
Define a test sequence using a tabular series of steps. Like the Test Assessment block, the Test Sequence block uses MATLAB® as the action language.
Examples
Limitations
For inactive Test Sequence Scenarios that contain
verify
statements, the Test Manager and the Simulation Data Inspector show the results as untested.Step names must be less than 64 characters. This limitation also applies to enumeration names for monitoring the active step.
You cannot use the Simulink® Finder to replace code in Test Sequence blocks. However, you can click Search or use Ctrl+F in the Test Sequence Editor to find and replace code.
Ports
Ports correspond to inputs and outputs defined in the Test Sequence Editor Symbols pane.
Parameters
For a description of block parameters, see Subsystem.
Tips
You can choose to log only
pass
andfail
results for theverify
statements in a Test Sequence block and not displayuntested
results. To log onlypass
andfail
verify
results, on the Tests or Harness tab, in the Test Cases section, click Suppress Untested Results. Alternatively, you can useset_param
to set thelogOnlyTestedVerifyResults
parameter to'on'
. For example, to log onlytested
verify statement results for the modelmyModel
:set_param(myModel,'logOnlyTestedVerifyResults','on')
For more information see
verify
.
Extended Capabilities
Version History
Introduced in R2015a