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

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

 Respuesta aceptada

Atsushi Ueno
Atsushi Ueno el 20 de Jul. de 2024

0 votos

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 comentario

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Results, Reporting, and Test File Management en Centro de ayuda y File Exchange.

Productos

Versión

R2023a

Etiquetas

Preguntada:

el 19 de Jul. de 2024

Comentada:

el 20 de Jul. de 2024

Community Treasure Hunt

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

Start Hunting!