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: Karlheinz Kellerer <Karlheinz.Kellerer@?.de>
  • Date: 07 Feb 2006 13:02:56 +0100

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


Videos Downloads Dokumentation Kaufen Gratis Testen