Main Content

sltest.testsequence.find

Find Test Sequence blocks

Description

blocks = sltest.testsequence.find returns a cell array blocks listing Test Sequence blocks in open models.

Note

You cannot use the Simulink® Finder to find and replace code in Test Sequence blocks.

Examples

collapse all

This example opens a test harness and finds the paths to the two Test Sequence blocks contained in the test harness.

Open the model and test harness.

open_system('sltestTestSequenceWhenExample')
sltest.harness.open('sltestTestSequenceWhenExample/SimpleTracker',...
'SimpleTrackerHarness')

Find the Test Sequence blocks. One of the blocks is used specifically for Test Assessment.

blocks = sltest.testsequence.find
blocks =

  1×2 cell array

  Column 1

    'SimpleTrackerHarn…'

  Column 2

    'SimpleTrackerHarn…'

Version History

Introduced in R2016a