Documentation

sltest.testsequence.deleteStep

Delete test sequence step

Syntax

sltest.testsequence.deleteStep(blockPath,stepPath)

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.

cd(matlabroot);
Model = 'sltestRollRefTestExample';
load_system(fullfile(matlabroot,'examples','simulinktest',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 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

Was this topic helpful?