Documentation

sltest.testsequence.find

Find Test Sequence blocks

Syntax

blocks = sltest.testsequence.find

Description

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

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…'

Introduced in R2016a

Was this topic helpful?