MATLAB App Testing - Confirmation dialog boxes
11视图(last 30 days)
Show older comments
How can I handle confirmation dialog boxes when testing an app with gestures?
Ideally, I would like to choose 'OK' or 'Cancel' based on some variables' values.
我知道没有一种直接的方法可以做到这一点,但是是否有任何选择,以便它们被禁用或其他?
Accepted Answer
安迪Campbell
2021年9月13日
Until this functionality is included in the App Testing Framework, if you can adjust the architecture of the source code you can leverage a similar strategy as that outlined
这里
and use a mock for the confirmation dialog.
这有助于您前进吗?
Thanks,
安迪
More Answers (2)
肖恩·德·沃尔斯基(Sean de Wolski)
on 10 Sep 2021
You can dismiss and alert but not a confirmation dialog yet. Capability for alerts added in 21a.
//www.tianjin-qmedu.com/help/releases/r2021a/matlab/ref/ref/matlab.uitest.testcase.dismissalertdialog.html
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
开始狩猎!