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 Exchange에서 Develop 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