getTestSuiteByName
类: sltest.testmanager.TestSuite
命名空间: sltest.testmanager
通过名称获取测试套件对象
语法
tsOut = getTestSuiteByName(tsIn,name)
输入参数
tsIn
— 测试套件
sltest.testmanager.TestSuite
对象
测试套件,指定为 sltest.testmanager.TestSuite
对象。
name
— 测试套件名称
字符向量
测试套件对象中的测试套件的名称,指定为字符向量。如果名称与测试套件不匹配,则该函数返回一个空的测试套件对象。
输出参量
tsOut
— 测试套件
sltest.testmanager.TestSuite
对象
测试套件,作为 sltest.testmanager.TestSuite
对象返回。如果名称与测试套件不匹配,则该函数返回一个空的测试套件对象。
示例
获取测试套件对象
% Create a test file and new test suite tf = sltest.testmanager.TestFile('API Test File'); ts = getTestSuiteByName(tf,'New Test Suite 1'); % Create new test suite createTestSuite(ts,'API Test Suite'); % Get test suite by name ts2 = getTestSuiteByName(ts,'API Test Suite');
版本历史记录
在 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)