%% Find a test step in a Test Sequence block
% This example finds a test step in a Test Sequence block.
% 1. Load the model.

Model = 'sltestRollRefTestExample';
load_system(Model)

%
% 2. Find test sequence steps that contain the case-insensitive string apeng.

steps = sltest.testsequence.findStep('sltestRollRefTestExample/Test Sequence',...
    'Name','[Aa][Pp][Ee]ng','RegExp','on')

%

steps(3)

%
% 3. Close the model.

close_system(Model,0)

%
% Copyright 2012 The MathWorks, Inc.