Main Content

remove

Class: sltest.testmanager.TestCase
Package: sltest.testmanager

Remove test case

Syntax

remove(tc)

Description

remove(tc) removes the test case. The test case object is empty after a call to this function. Parameter overrides, baseline criteria, or equivalence criteria associated with the test case become invalid.

Input Arguments

expand all

Test case to remove, specified as an sltest.testmanager.TestCase object.

Examples

expand all

% Create test file
tf = sltest.testmanager.TestFile('C:\MATLAB\test_file.mldatx');

% Create test suite
ts = sltest.testmanager.TestSuite(tf,'My Test Suite');

% Create test case
tc = sltest.testmanager.TestCase(ts,'equivalence',...
'Eq Test Case');

% Remove the test case
remove(tc);
Introduced in R2015b