[Qt-interest] How to test a QMessageBox::warning with QtTest?
Sam
ariasgore at gmx.de
Tue Jul 7 19:06:46 CEST 2009
Hello,
I am wondering if it is possible with the tools provided by QtTest to test
for message boxes.
My scenario: An input field creates in some situations a message box by
calling
QMessageBox::warning. So it is statically and instantaneous.
The parent window is frozen when this occurs but I cant get a gui test to
work that is able to check and even process this situation. I can cause the
message to occur with tests but then I have no handle to go any further like
clicking ok on the message box or even read its contents (if possible at
all)
Is this possible with QtTest? I hope so, since in my case testing gui is
similar to fishing for error messages which cant be reproduced by simple
unit test.
Thanks,
Sam
More information about the Qt-interest-old
mailing list