Test Sequence Basics - MATLAB & Simulink (original) (raw)

Main Content

A test sequence consists of test steps arranged in a hierarchy. You can use a test sequence to define test inputs and to define how a test progresses in response to the simulation. A test step contains actions that execute at the beginning of the step. A test step can contain transitions that define when the step stops executing, and which test step executes next. Actions and transitions use MATLABĀ® as the action language. You create test sequences by using the Test Sequence block and the Test Sequence Editor. See Use Stateflow Chart for Test Harness Inputs and Scheduling.

Test Sequence Hierarchy

Test sequences defined in Test Sequence blocks can have parent steps and substeps. Substeps can activate only if the parent step is active. A group of steps in the same hierarchy level shares a common transition type. When you create a test step, the step becomes a transition option for other steps in the same group.

Test Sequence Scenarios

In a Test Sequence block, you can define multiple test sequences, which are called_test sequence scenarios_. By using scenarios, you can define distinct test sequences without having multiple Test Sequence blocks in your test harness. You can run test sequence scenarios in these ways:

For more information and examples of using test sequence scenarios, seeUse Test Sequence Scenarios in the Test Sequence Editor and Test Manager and Programmatically Create and Run Test Sequence Scenarios.

Transition Types

Test sequences defined in Test Sequence blocks transition from one step to another in two ways:

See Also

Test Sequence

Topics