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

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

 Accepted Answer

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 Comment

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

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2023a

Asked:

on 19 Jul 2024

Commented:

on 20 Jul 2024

Community Treasure Hunt

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

Start Hunting!