How to change SIMULATION OUTPUTS settings programmatically in TestManager?

How do I programmatically change the option in TestManager?
I'm tring to change the state of the checkbox named as 'Plot signals on the specified plots after simulation' which is one of SIMULATION OUTPUTS settings in TestManager(in detail, Test Case).

 Respuesta aceptada

% Open the model sltestFlutterSuppressionSystemExample for example.
openExample('sltestFlutterSuppressionSystemExample')
% Open test suite and test case. And set the property accordingly.
tf = sltest.testmanager.TestFile('sltestFlutterCriteriaTest.mldatx')
ts = tf.getTestSuites;
tc = ts.getTestCases;
tc.setProperty('PlotSignalAfterSimulation', true); % tc is the test case object
FYI, I tested the script in R2024a.

Más respuestas (0)

Categorías

Más información sobre Results, Reporting, and Test File Management en Centro de ayuda y File Exchange.

Productos

Versión

R2021b

Preguntada:

el 28 de Mzo. de 2024

Respondida:

el 29 de Mzo. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by