使用sltest.testmanager.run函数,同一个脚本里已有的图形句柄会被删除,为什么
Mostrar comentarios más antiguos
f = uifigure; % 创建图形界面
tf = sltest.testmanager.TestFile('E:\RS220105\dd\dd.mldatx'); % 获取test file
ts = tf.getTestSuiteByName('newGroup'); % 获取test suite
ts = ts.getTestSuiteByName('newCase');
tc = ts.getTestCaseByName('newCase simulation'); % 获取test case
run(tf); % 运行test case,不明白为啥run的时候,图形界面f会被删除
Respuestas (1)
小玲 向
el 9 de En. de 2023
0 votos
Categorías
Más información sobre Results, Reporting, and Test File Management en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!