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

0 Comments
Accepted Answer
  Atsushi Ueno
      
 on 20 Jul 2024
        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')
setProperty(tc,'SaveInputRunInTestResult',true)
getProperty(tc,'SaveInputRunInTestResult')
More Answers (0)
See Also
Categories
				Find more on Results, Reporting, and Test File Management in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
