SimulinkTe​stの入力データをテ​スト結果に含める設定​について

Simulink Testで等価性テストを自動で行うスクリプトを作成しています。
以下の「入力データをテスト結果に含める」にチェックを入れるスクリプトを作成したいのですが、
ドキュメントを確認しても見つかりませんでした。
スクリプトでの設定方法をご存じでしたら教えていただきたいです。

 采纳的回答

Test Manager で変更しているのは Test Case の Properties です。
Set test case property にそれらしきプロパティがありました。
動作確認していませんが多分これです。
tf = sltest.testmanager.TestFile('API Test File');
ts = createTestSuite(tf,'API Test Suite');
tc = createTestCase(ts,'baseline','Baseline API Test Case');
getProperty(tc,'SaveInputRunInTestResult')
ans = logical
0
setProperty(tc,'SaveInputRunInTestResult',true)
getProperty(tc,'SaveInputRunInTestResult')
ans = logical
1

1 个评论

祥太
祥太 2024-7-20
ありがとうございます。
完全に見落としていたので、大変助かりました。

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Results, Reporting, and Test File Management 的更多信息

产品

版本

R2023a

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!