Does baseline criteria give expected output?

3 views (last 30 days)
Sunny Jotrao
Sunny Jotrao on 7 Feb 2020
Commented: Paul Urban on 12 Feb 2020
Hello,
I am working on MIL V&V testing for software components. I am using baseline testing in test manager and running test cases using Excel spreadsheet.
But some how we are feeling the capturing baseline criteria and running test case is same way of simulating values in matlab models.
I would like to know Is it correct way to use baseline criteria? Is there any aleternative way to capture expetcted output and then run test cases in test manager?

Answers (2)

Paul Urban
Paul Urban on 10 Feb 2020
There are multiple ways to capture expected outputs for a test case. In addition to Excel there are Test Assessment Blocks, verify statements, Temporal Assessment that can also be used. This topic in the documentation provides a summary of the other options available to capture expected outputs:

Sunny Jotrao
Sunny Jotrao on 12 Feb 2020
Okay let me restructure my question again here - What is difference between running test case from test manager and capturing baseline criteria. Does it run same engine to generate output?
  1 Comment
Paul Urban
Paul Urban on 12 Feb 2020
Thanks for the clarification. The Capture baseline operation runs a simulation and saves the output into a file. It is expected to pass without any model or test changes if run immediately after capturing the baseline. One use case for this is to capture the current baseline for future regression testing. Here is an example where a baseline is captured and then there is a change in the model which is detected by the baseline test.
There is also an example where the baseline is captured and then a parameter is overridden which causes the test to fail.
You could also use the captured baseline as a starting point to edit the expected test outputs directly in the Excel or MAT file. There is a video here that shows how to do this: https://www.mathworks.com/videos/using-excel-to-define-tests-with-simulink-test-1550492730713.html
Another way to get pass/fail criteria is to use verify statements. There is an example here where a Check Static Upper Bound block is used to check the value of a signal:
There are many different options available for creating tests and test criteria. If you need further assistance then you could contact your sales person or contact Technical Support directly by creating a service request.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!