Main Content

sltest.testsequence.deleteStep

Delete test sequence step

Description

sltest.testsequence.deleteStep(blockPath,stepPath) deletes a test step specified by stepPath from a Test Sequence block specified by blockPath. Sub-steps of stepPath are also deleted.

Examples

collapse all

This example shows how to delete a test step programmatically from a Test Sequence block.

1. Load the model.

Model = 'sltestRollRefTestExample';
load_system(Model);

2. Delete the step Stop from the Test Sequence block.

sltest.testsequence.deleteStep('sltestRollRefTestExample/Test Sequence','Stop');

3. Close the model

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'

Version History

Introduced in R2017a