createTestSuite
类: sltest.testmanager.TestSuite
命名空间: sltest.testmanager
创建测试套件
语法
tsOut = createTestSuite(ts,suiteName)
输入参数
ts
— 测试套件
sltest.testmanager.TestSuite
对象
想要添加另一个测试套件的测试套件,指定为 sltest.testmanager.TestSuite
对象。
suiteName
— 测试套件名称
字符串标量 | 字符向量
测试套件名称,指定为字符串标量或字符向量。如果此输入参量为空,则测试管理器会为测试套件提供唯一的名称。
示例: "My Test Suite"
输出参量
tsOut
— 测试套件
sltest.testmanager.TestSuite
对象
测试套件,作为 sltest.testmanager.TestSuite
对象返回。
示例
创建测试套件
% Create test file tf = sltest.testmanager.TestFile("test_file"); % Create test suite ts = sltest.testmanager.TestSuite(tf,"My Test Suite"); % Create another new test suite using method ts2 = createTestSuite(ts,"Baseline Tests")
版本历史记录
在 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)