merging testcases generated from simulink design verifier

3 ビュー (過去 30 日間)
Junhyung
Junhyung 2022 年 12 月 14 日
回答済み: Pat Canny 2022 年 12 月 14 日
I have generated testcases with sldv toolbox. The problem is that the first two or three cases are about 0.7 seconds long, and as the cases grow, test cases get really short, around 0.1 second long. I presuming that sldv toolbox is creating cases for every component in the model to meet the coverage i demanded.
I am hoping to find a way to concat groups of data to make a longer case, or get longer cases that handle multiple coveage components.

採用された回答

Pat Canny
Pat Canny 2022 年 12 月 14 日
I recommend trying the 'LongTestCases' Test Suite Optimization option, like so:
opts = sldvoptions;
opts.AutomaticStubbing = 'on';
opts.Mode = 'TestGeneration';
opts.ModelCoverageObjectives = 'MCDC';
opts.ReportIncludeGraphics = 'on';
opts.SaveHarnessModel = 'off';
opts.SaveReport = 'off';
opts.TestSuiteOptimization = 'LongTestCases';
Here is a brief description of the option from our documentation:
"When you also specify LongTestcases for the Test suite optimization parameter, the analysis uses successive passes of test generation to extend a potential test case so that it satisfies more objectives. When this happens, the analysis applies the Maximum test case steps parameter to each individual iteration of test generation."

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGenerate Tests についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by