Test Sequence - Create simulation testing scenarios, function calls, and
assessments - Simulink ([original](https://in.mathworks.com/help/sltest/ref/testsequence.html)) ([raw](?raw))
Main Content
Create simulation testing scenarios, function calls, and assessments
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. Double-click the Test Sequence block icon to open the Test Sequence editor.
Examples
Limitations
- Step names must be less than 2048 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 EditorSymbols 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 orHarness tab, in the Test Cases section, click Suppress Untested Results. Alternatively, you can use set_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](verify.html)
.
Extended Capabilities
If you use Test Sequence Scenarios that contain verify
statements, you cannot generate Structured Text code.
Version History
Introduced in R2015a
The Test Manager does not display results for verify
statements in inactive Test Sequence scenarios.