Main Content

Test Sequence

Create simulation testing scenarios, function calls, and assessments

  • Test Sequence block

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 and fail results for the verify statements in a Test Sequence block and not display untested results. To log only pass and fail verify results, on the Tests or Harness tab, in the Test Cases section, click Suppress Untested Results. Alternatively, you can use set_param to set the logOnlyTestedVerifyResults parameter to 'on'. For example, to log only tested verify statement results for the model myModel:

    set_param(myModel,'logOnlyTestedVerifyResults','on')

    For more information see verify.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2015a