This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Inputs

Step-based test sequences, external data sources, signal authoring, automatic test case generation

You can develop test scenarios by authoring input data, mapping external data to your test cases, or automatically generating inputs using Simulink® Design Verifier™:

  • Create a template MAT-file or Excel® file from your model and add values.

  • Place a Signal Editor block in the system under test and author inputs graphically.

  • Map MAT- or Excel files to the system under test.

  • Create a test directly from data contained in an Excel files. For more information, see Run Tests Using External Data.

  • Generate test inputs Simulink Design Verifier to extend coverage or replicate design error conditions. Add the generated tests to your test file.

You can also author test inputs that react to simulation behavior by using a Test Sequence block. Define sets of steps and transitions by using MATLAB® as the action language. You can use sequential or switched step groups in a hierarchy. Create test sequences in a Test Sequence block.

Blocks

Test SequenceCreate simulation testing scenarios, function calls, and assessments

Topics

Use External Data

Test Case Input Data Files

Create Excel and MAT-file templates to use for test inputs and populate them with data.

Run Tests Using External Data

Map test input data from MAT-files and Excel files to test cases.

Generate Test Inputs

Increase Coverage by Generating Test Inputs

Use Simulink Design Verifier to generate tests that extend coverage and recreate design errors, and add generated tests to your test file.

React to Simulation

Test Sequence Basics

Overview of test sequence actions, transitions, and hierarchy.

Test Sequence Editor

How to use test steps, transitions, data, and When decomposition sequences in the Test Sequence and Test Assessment blocks.

Test Sequence and Assessment Syntax

Operators and expressions used in Test Sequence and Test Assessment blocks.

Actions and Transitions

Transition between test sequence steps using conditional logic, temporal operators, and event operators.

Signal Generation Functions

Generate signal pattern inputs to the component under test, and call external functions from test steps.

Featured Examples