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.


Delete test sequence step




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.


collapse all

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

1. Load the model.

Model = 'sltestRollRefTestExample';

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

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

3. Close the model


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'

Introduced in R2017a