Test Cases using Signalbuilder - Run one after the other then get result

1 visualización (últimos 30 días)
Raju Biswal
Raju Biswal el 12 de Oct. de 2017
Comentada: Raju Biswal el 17 de Oct. de 2017
Hi,
I am trying to run test cases to test my stateflow. I have 5 signals and have managed to construct a signalbuilder block with 5 signals and 80 groups (group is each test case). I imported a .MAT file to make the 5 signals 80 groups within signalbuilder.
I have connected this directly to the relevant inputs in the stateflow. I would like to run each test case (group) one after the other and then compile this data into a report or even an excel file of some sort?
At the moment, I have pressed the start simulation button in the signalbuilder screen which correctly plays one group of signals. When pressing run all it runs all but produces a coverage report that is of no value.
Is there a more efficient way of doing this?
Please can you help regarding these issues.
Thanks very much.
R.

Respuestas (1)

Young Ma
Young Ma el 13 de Oct. de 2017
Editada: Young Ma el 13 de Oct. de 2017
Hi Raju,
I understand from your question that your system under test is a Stateflow chart and you want to use Signal Builder block as your source to test different scenarios (groups in the Signal Builder) and generate coverage results for each group for reporting.
If you are using Simulink Test in MATLAB version R2016a or later, you can refer to the following example to create a test file to sweep over your Signal Builder groups:
Once you create your test file, you can enable coverage options in the test file. Here is an example to help you with this:
From the test result, you can generate a report that includes the coverage results. Here is an example for creating the report from results:

Community Treasure Hunt

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

Start Hunting!

Translated by