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.

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