Filter löschen
Filter löschen

Skipped verify statements appear in tests they are not called in ?

4 Ansichten (letzte 30 Tage)
Szilard Hegyi
Szilard Hegyi am 14 Feb. 2023
Beantwortet: Pratheek am 30 Mär. 2023
Quick question. Is there a reason why unused verified statements appear in the results section in test cases they are not called in ?
They are skipped of course, but for example if someone has many verify statements in one if the scenarios used in the harness and in the other one just 1 or 2 , then all of the statements will be listed in both test case results in the Simulink Test Manager :
Is there any setting that would make only the related verifications to that test case appear ?
Thanks in advance

Antworten (1)

Pratheek
Pratheek am 30 Mär. 2023
When running test cases in Simulink Test Manager, all of the verify statements present in the model will be listed in the results section of each test case, regardless of whether they were called or skipped. This is because Simulink Test Manager generates the test results based on the entire test script or model, providing you with a comprehensive summary of all the verify statements present, however, if you only want to see the verification statements that are relevant to a particular test case, you can use the filtering functionality available in the Simulink Test Manager.
To do this, you can select the test case in question, and then use the "Filter Results" option in the toolbar. From there, you can specify the criteria for filtering, such as only showing results for specific verification statements or test steps. This should allow you to focus on the results that are most relevant to the particular test case you are interested in.

Kategorien

Mehr zu Verification, Validation, and Test finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by