フィルターのクリア

使用sltest.t​estmanager​.run函数,同一个​脚本里已有的图形句柄​会被删除,为什么

5 ビュー (過去 30 日間)
小玲 向
小玲 向 2023 年 1 月 9 日
回答済み: 小玲 向 2023 年 1 月 9 日
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会被删除

回答 (1 件)

小玲 向
小玲 向 2023 年 1 月 9 日
我发现如果test case中有多次迭代,则run的时候,图形窗口会被删除,如果只有一个迭代,则不会

カテゴリ

Help Center および File Exchange测试模型组件 についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!