From: Gerard M. D. <Ger...@or...> - 2006-03-24 09:38:57
|
Hi, One way to work around this is to run abbot under JDK 1.6 so you can alter the modality rules for the Abbot main window. This would allow you to interact with Costello even whilst there is a modal dialog in your running application. I put together a reflective version of this code that will gracefully degrade depending on the JDK: http://www.orablogs.com/gdavison/archives/001512.html Hope this is of some help, Gerard > Message: 1 > Date: Thu, 23 Mar 2006 14:38:01 -0300 > From: "Dirceu Semighini Filho" <von...@gm...> > To: abb...@li... > Subject: Fwd: [abbot-users] Verify the text of a modal JDialog > > ------=_Part_1037_5447946.1143135481369 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline > > Hi Timothy > > My problem is that the JDialog is a modal JDialog, and when it is showing > the abbot application stays inaccessible. Sometimes I can see that the abbo= > t > get the name of the components when I am using alt-shift-F1, but as I can > access the abbot, I miss this information when I do the next action in my > application. > > Kind Regards > Dirceu > > 2006/3/10, Timothy Wall <tw...@us...>: > >> There's an entry for this in the FAQ. You need to create references >> while the dialog is showing using alt-shift-F1, then make the >> assertions after the dialog is dismissed. >> >> Someone posted some patches to auto-add assertions via keystrokes, >> but these haven't been incorporated yet (they are available on SF). >> >> On Mar 10, 2006, at 9:22 AM, Dirceu Semighini Filho wrote: >> >> >>> Hello all. >>> I am starting with Abbot gui testing, and I have to assert a text >>> displayed in a modal jdialog. But when this jdialog is displayed by >>> the software, the Abbot freeze. I can=B4t access anything from the >>> abbot until I unshow the JDialog. >>> >>> There is a way to assert this text, without changing the software >>> code? >>> >>> Best Regards >>> Dirceu Semighini Filho >>> >> Timothy Wall >> http://abbot.sf.net >> >> >> >> > > ------=_Part_1037_5447946.1143135481369 > Content-Type: text/html; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline > > <span class=3D"gmail_quote"></span>Hi Timothy<br><br>My problem is that the= > JDialog is a modal JDialog, and when it is showing the abbot application s= > tays inaccessible. Sometimes I can see that the abbot get the name of the c= > omponents when I am using alt-shift-F1, but as I can access the abbot, I mi= > ss this information when I do the next action in my application. > <br><br>Kind Regards<br>Dirceu<br><br><div><span class=3D"gmail_quote">2006= > /3/10, Timothy Wall <<a href=3D"mailto:tw...@us..." targ= > et=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">twal= > l...@us... > </a>>:</span><div><span class=3D"e" id=3D"q_10a2827bf99ac1bd_1"><blockqu= > ote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204= > ); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> > There's an entry for this in the FAQ. You need to create referen= > ces<br>while the dialog is showing using alt-shift-F1, then make the<br>ass= > ertions after the dialog is dismissed.<br><br>Someone posted some patches t= > o auto-add assertions via keystrokes, > <br>but these haven't been incorporated yet (they are available on SF).<br>= > <br>On Mar 10, 2006, at 9:22 AM, Dirceu Semighini Filho wrote:<br><br>> = > Hello all.<br>> I am starting with Abbot gui testing, and I have to asse= > rt a text > <br>> displayed in a modal jdialog. But when this jdialog is displayed b= > y<br>> the software, the Abbot freeze. I can=B4t access anything from th= > e<br>> abbot until I unshow the JDialog.<br>><br>> There is a way = > to assert this text, without changing the software > <br>> code?<br>><br>> Best Regards<br>> Dirceu Semighini Filho<= > br><br>Timothy Wall<br><a href=3D"http://abbot.sf.net" target=3D"_blank" on= > click=3D"return top.js.OpenExtLink(window,event,this)">http://abbot.sf.net<= > /a> > <br><br><br></blockquote></span></div></div><br><br> > > ------=_Part_1037_5447946.1143135481369-- > > |