Main Content

sltest.testsequence.deleteTransition

Delete test sequence transition

Description

example

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

model = 'sltestRollRefTestExample';
load_system(model);

Delete the Transition and Close the Model

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

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

close_system(model,0);

Input Arguments

collapse all

Path to a Test Sequence block, including the block name, specified as a string or character vector. Instead of the block path, you can use a block handle.

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. If the Test Sequence block is using scenarios, add the scenario name that contains the step to the beginning of the step path, for example, Scenario_2.SystemHeatingTest.InitializeHeating.

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

Version History

Introduced in R2017a