Which testing scenario should be selected, for testing if the model's output and expected output is same.
2 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Altaïr
on 20 Mar 2025
Edited: Altaïr
on 20 Mar 2025
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
More Answers (0)
See Also
Categories
Find more on Test Cases and Iterations 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!