Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAccessing wizard error/warning messages?
https://www.eclipse.org/forums/index.php/mv/msg/152135/478978/#msg_478978
I am writing some swtbot tests involving wizards and I want to test that
the correct warning/error messages are generated that appear at the top of
the wizard( i.e., those provided by wizPage.setError(message). I've spent
some time trying to loop through text & label widgets without any success,
has anyone come across how to do this?
Any help appreciated! Thanks Richard]]>Richard Adams2009-08-07T18:48:29-00:00Re: Accessing wizard error/warning messages?
https://www.eclipse.org/forums/index.php/mv/msg/152135/538339/#msg_538339
I am trying to do the same- access the error messages displayed in a dialog. Is there a way to do this?
None of the options below work:
bot.label(message);
bot.text(message);
bot.textWithMessage(message);
Regards,
Ashitha.]]>ashitha shetty2010-06-07T12:19:44-00:00Re: Accessing wizard error/warning messages?
https://www.eclipse.org/forums/index.php/mv/msg/152135/538380/#msg_538380
> Hi ,
>
> I am trying to do the same- access the error messages displayed in a
> dialog. Is there a way to do this?
>
> None of the options below work:
> bot().label(message);
> bot().text(message);
> bot().textWithMessage(message);
>
> Regards,
> Ashitha.
There is a big catch in this. Look at
TitleAreaDialog#setErrorMessage(String), line 388: there is a space
added a the beginning of the error message! So you gotta do:
bot.text(" " + errorMessage);
*Because performance matters.*]]>Pascal G2010-06-07T13:56:34-00:00Re: Accessing wizard error/warning messages?
https://www.eclipse.org/forums/index.php/mv/msg/152135/538382/#msg_538382
Although I did look at the TitleAreaDialog class, I overlooked this very important detail. Thanks for your help!