MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
类: sltest.TestCase 命名空间: sltest
创建用于交互使用的测试用例
testCase = sltest.TestCase.forInteractiveUse
testCase = sltest.TestCase.forInteractiveUse 返回一个配置为在 MATLAB 命令行上交互使用的测试用例实例。在 MATLAB 命令行使用此方法来调试 TestCase 对象,而无需编写完整的测试文件。您不能在测试文件中使用此方法。
testCase
TestCase
示例
全部展开
sltest.TestCase
测试用例的实例,作为 sltest.TestCase 对象返回。此实例配置为将资格失败和成功打印到标准输出,通常是屏幕。
Static
yes
要了解方法的属性,请参阅方法属性。
testCase =... sltest.TestCase.forInteractiveUse; expected = testCase.simulate('myModel',... 'SimulationMode','Normal'); actual = testCase.simulate('myModel',... 'SimulationMode','Rapid-Accelerator'); testCase.verifySignalsMatch(actual,expected)
在 R2020b 中推出
sltest.TestCase | assertSignalsMatch | fatalAssertSignalsMatch | assumeSignalsMatch | verifySignalsMatch
assertSignalsMatch
fatalAssertSignalsMatch
assumeSignalsMatch
verifySignalsMatch
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处