Main Content

sltest.testsequence.isUsingScenarios

Determine whether Test Sequence block uses scenarios

Description

example

TF = sltest.testsequence.isUsingScenarios(blockPath) returns whether the Test Sequence block specified by blockPath uses scenarios.

Examples

collapse all

Check whether the Test Sequence block in the sltestRollRefTestExample model uses scenarios. In this case, the block has not been set to use scenarios, so isUsingScenarios returns false.

Model = 'sltestRollRefTestExample';
load_system(Model);

use_scen = sltest.testsequence.isUsingScenarios...
   ('sltestRollRefTestExample/Test Sequence')
use_scen =

  logical

   1
 

Close the model without saving it.

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.

Example: 'FanSpeedTestHarness/Test Sequence'

Introduced in R2020b