Which testing scenario should be selected, for testing if the model's output and expected output is same.
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am new to the Simulink test manager. I am trying to test a subsystem.
The test case or criteria is as follows:
when required inputs are fed
1) If the Test harness output matched with expected output: Test passed
2) If the above two didn't match: Test Failed.
Required inputs and Expected outputs are in Excel sheet.
So I couldn't figure out which test scenario should be selected from follows (for testing if the model's output and expected output is same):
1) Base line test
2) Equivalence test
3) Simulation test
4) Real-time test
5) Test for Model component
0 件のコメント
採用された回答
Altaïr
2025 年 3 月 20 日
編集済み: Altaïr
2025 年 3 月 20 日
The baseline test is particularly useful for comparing test harness results with baseline (reference/expected) data as in your case. An example can be found here:
Equivalence tests are suitable when the goal is to compare results between two simulations, such as comparing Normal and SIL simulation modes. Simulation tests allow users to specify verification criteria, like checking variable values at certain times. Real-time tests are designed for deploying and testing models on hardware, so they can be overlooked if hardware isn't involved.
The "Test for Model Component" wizard facilitates the interactive creation of test harnesses and test cases for models or components. More information about the wizard's capabilities can be found at: https://www.mathworks.com/help/sltest/ug/generate-tests-and-test-harness-for-a-component-or-model.html
For importing expected or baseline data from an external file, this page might be useful: https://www.mathworks.com/help/sltest/ug/use-external-excel-or-mat-file-data-in-test-cases.html#mw_23fe9a7d-c75e-4d22-881c-3d2be6ded987
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Test Cases and Iterations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!