test uialert with App Testing Framework
Afficher commentaires plus anciens
I'm developing an app with AppDesigner. This app has to validate user input and give feedback to the user upon invalid input. For this purpose, I use uialert() function, and that part works pretty well.
I test the app with App Testing Framework, and I would like to test against uialert() existence and displayed text. The problem is that uialert does not return handler, and I cannot found any way to call this object.
Can you please recommend a way to achieve this goal?
Réponses (1)
Mario Malic
le 2 Oct 2020
Modifié(e) : Mario Malic
le 2 Oct 2020
0 votes
I don't think it's possible to get handle of uialert function (I tried doing it briefly, but without succeeding), you should try doing this with inputdlg.
2 commentaires
Bence Molnar
le 11 Oct 2020
Modifié(e) : Bence Molnar
le 11 Oct 2020
Vikram Mohan
le 12 Mai 2021
From R2021a, matlab app testing framework supports dismissing uialert dialogs boxes- doc available. Hopefully you find this feature helpful.
Catégories
En savoir plus sur Results, Reporting, and Test File Management dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!