MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
类: sltest.testmanager.TestFile 命名空间: sltest.testmanager
获取测试文件中的所有测试用例
自 R2021b 起
tcArray = getAllTestCases(tf)
tcArray = getAllTestCases(tf) 返回测试文件中所有测试用例对象的平面数组。
tcArray
tf
示例
全部展开
sltest.testmanager.TestFile
包含要获取的测试用例的测试文件,指定为 sltest.testmanager.TestFile 对象。
sltest.testmanager.TestCase
测试文件中的测试用例,以 sltest.testmanager.TestCase 对象的平面数组形式返回。测试用例始终位于测试文件中的测试套件中。
tf = sltest.testmanager.TestFile('My Test File'); tcArray = getAllTestCases(tf);
在 R2021b 中推出
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处