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?

回答 (1 件)

Mario Malic
Mario Malic 2020 年 10 月 2 日
編集済み: Mario Malic 2020 年 10 月 2 日

0 投票

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 件のコメント

Bence Molnar
Bence Molnar 2020 年 10 月 11 日
編集済み: Bence Molnar 2020 年 10 月 11 日
I agree,that this can be a solution, actually so far I see the only option.
Based on documentation, uialert should be used instead of inputdlg. So I'm a little bit confused with this.
Vikram Mohan
Vikram Mohan 2021 年 5 月 12 日
From R2021a, matlab app testing framework supports dismissing uialert dialogs boxes- doc available. Hopefully you find this feature helpful.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

質問済み:

2020 年 10 月 2 日

コメント済み:

2021 年 5 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by