Mailingliste - Einträge 2006


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [qftestJUI] Can't set name for standard Jdialog


  • Subject: RE: [qftestJUI] Can't set name for standard Jdialog
  • From: Bostjan Praznik <bostjan.praznik@?.si>
  • Date: Tue, 7 Feb 2006 15:01:31 +0100

Hi,

As I already said the optionpane name resolver helped me with localized
JOptionPane dialogs.

Thanks for help,
Bostjan


-----Original Message-----
From: Karlheinz Kellerer [mailto:Karlheinz.Kellerer@?.de] 
Sent: Tuesday, February 07, 2006 2:52 PM
To: Bostjan Praznik
Subject: Re: [qftestJUI] Can't set name for standard Jdialog

Hi Bostjan,

great to hear your problem is solved!! 

Could you please do me the favour and drop a short note to the mailing list
(to terminate the thread). Thanks!

Best regards, 
    Karl 

Bostjan Praznik <bostjan.praznik@?.si> writes:

> Hi Karlheinz,
> 
> thank you for new eval license and thanks for helping me to solve my 
> JOptionPane problem. I enabled the optionpane name resolver and after 
> that qftest successfully recognized the dialog and buttons.
> 
> Best regards,
> Bostjan
> 
> 
> -----Original Message-----
> From: Karlheinz Kellerer [mailto:Karlheinz.Kellerer@?.de]
> Sent: Tuesday, February 07, 2006 1:03 PM
> To: 'qftestJUI-list@?.de'
> Cc: Bostjan Praznik
> Subject: Re: [qftestJUI] Can't set name for standard Jdialog
> 
> Hi Bostjan,
> 
> do you mean JOptionPane standard dialogs?
> 
> A name resolver for those dialogs is provided in the qftestJUI 
> standard library qfs.qft. Please have a look into the tutorial chapter 
> "8.10 The Optionpane Utility Package". Please let me know in case this 
> doesn't fit your needs.
> 
> Best regards, 
>     Karl
> 
> 
> Bostjan Praznik <bostjan.praznik@?.si> writes:
> 
> > Hi,
> > 
> > I have a problem with resolving names for standard JDialog windows. 
> > Dialogs opened with JDialog.showConfirmDialog (or. similar) can't 
> > have name assigned using setName method. Because our application is 
> > localized I added JDialog and JButton name recognition for handling 
> > such
> dialogs but it doesn't work.
> > When I run it in English the dialog is recognized as "dialogTest" 
> > (as definded in name resolver) but in other language the qftest 
> > recognizes the same dialog (but localized) as "dialogTest2".
> > If I don't use the name resolver the dialog name is created from 
> > dialog title and recognition fails again.
> > 
> > Here is the script I use for name resolving:
> > 
> > ...
> > self.comps.put(msgCatBundle.getMessage("TestString"), "Test") ...
> > elif JDialog.isInstance(com):
> >   return "dialog" + self.comps.get(com.getTitle()) elif
> > JButton.isInstance(com):
> >   return "button" + self.comps.get(com.getText())
> > 
> > 
> > Could you please help me with this? Is it maybe that I have to 
> > change some qftest settings? In the attached pictures you can find 
> > my current
> settings.
> > 
> > 
> > Thank you in advance,
> > Bostjan
> > 
> > 
> > 
> > _______________________________________________
> > qftestJUI-list mailing list
> > qftestJUI-list@?.de
> > http://www.qfs.de/mailman/listinfo/qftestjui-list
> 
> -- 
> Karlheinz Kellerer                     Karlheinz.Kellerer@?.de
> Quality First Software GmbH                    http://www.qfs.de
> Tulpenstr. 41                               Tel: +49 8171 919877
> DE-82538 Geretsried                         Fax: +49 8171 919876

-- 
Karlheinz Kellerer                     Karlheinz.Kellerer@?.de
Quality First Software GmbH                    http://www.qfs.de
Tulpenstr. 41                               Tel: +49 8171 919877
DE-82538 Geretsried                         Fax: +49 8171 919876


Videos Downloads Dokumentation Kaufen Gratis Testen