Main Content

remove

Class: sltest.testmanager.FaultSet
Namespace: sltest.testmanager

Remove fault set from test case

Since R2024a

Syntax

remove(faultSet)

Description

remove(faultSet) removes the specified fault set from a test case. You must have Simulink® Fault Analyzer™ to use this method.

Input Arguments

expand all

Fault set, specified as a sltest.testmanager.FaultSet object.

Examples

expand all

Create a test file, test suite, and test case, then add a fault set named myNewFaultSet.

tf = sltest.testmanager.TestFile("myTestFile.mldatx");
ts = sltest.testmanager.TestSuite(tf,"myTestSuite");
tc = sltest.testmanager.TestCase(ts,"simulation","myTestCase");
myFaultSet = addFaultSet(tc,Name="myNewFaultSet");

Remove the fault set.

remove(myFaultSet)

Version History

Introduced in R2024a