帮助中心帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
在 Simulink Test 管理器中加载测试文件
tfObj = sltest.testmanager.load(filename)
示例
tfObj = sltest.testmanager.load(filename) 在 Simulink® Test™ 管理器中加载一个测试文件。
tfObj
filename
全部折叠
加载测试文件并在测试管理器中查看它。
exampleFile = 'sltestParameterOverridesTestSuite.mldatx'; sltest.testmanager.load(exampleFile); sltest.testmanager.view;
测试文件的文件名,指定为字符向量。字符向量必须完整指定测试文件的位置。该文件可以是测试文件(.mldatx),或者如果 MATLAB 测试文件是从 sltest.TestCase 派生的类,则为 MATLAB 测试文件(.m)。
.mldatx
sltest.TestCase
.m
示例: 'C:\MATLAB\test_file.mldatx'
'C:\MATLAB\test_file.mldatx'
测试文件,作为 sltest.testmanager.TestFile 对象返回。
sltest.testmanager.TestFile
在 R2015a 中推出
sltest.TestCase | sltest.testmanager.run | sltest.testmanager.view | sltest.testmanager.TestFile
sltest.testmanager.run
sltest.testmanager.view
您点击的链接对应于以下 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office