remove
类: sltest.testmanager.TestCase
命名空间: sltest.testmanager
删除测试用例
语法
remove(tc)
说明
remove(
删除测试用例。调用此函数后,测试用例对象为空。与测试用例相关的参数覆盖、基线准则或等效性准则变为无效。tc
)
输入参数
tc
— 测试用例
sltest.testmanager.TestCase
对象
要删除的测试用例,指定为 sltest.testmanager.TestCase
对象。
示例
刪除测试用例
% 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);
版本历史记录
在 R2015b 中推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)