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.deleteTransition

Delete test sequence transition

Syntax

sltest.testsequence.deleteTransition(blockPath,stepPath,index)

Description

sltest.testsequence.deleteTransition(blockPath,stepPath,index) deletes the transition at the given numerical index from the test step specified by blockPath and stepPath.

Examples

collapse all

This example deletes a transition from the test sequence.

Load the model.

cd(matlabroot);
Model = 'sltestRollRefTestExample';
load_system(fullfile(matlabroot,'examples','simulinktest',Model));

Delete the transition from the test step SetKnobAndPhi under the parent step TurnKnobAndAttitude.

sltest.testsequence.deleteTransition...
('sltestRollRefTestExample/Test Sequence',...
'TurnKnobAndAttitude.SetKnobAndPhi',1)

Close the model.

close_system(Model,0);

Input Arguments

collapse all

Path to a Test Sequence block, including the block name, specified as a character vector.

Example: 'FanSpeedTestHarness/Test Sequence'

Path of the step in the Test Sequence block, specified as a character vector. The path includes the step location in the Test Sequence hierarchy, using . to separate hierarchy levels.

Example: 'SystemHeatingTest.InitializeHeating'

Integer specifying the transition in the test step to be edited. Corresponds to the integer displayed in the Transition cell of the Test Sequence Editor.

Example: 3

Introduced in R2017a