Mailing list - Entries of 2006


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

[qftestJUI] Can't set name for standard Jdialog


  • Subject: [qftestJUI] Can't set name for standard Jdialog
  • From: Bostjan Praznik <bostjan.praznik@?.si>
  • Date: Mon, 6 Feb 2006 10:12:22 +0100

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

Attachment: Settings-record.jpg
Description: JPEG image

Attachment: Settings-replay.jpg
Description: JPEG image


Videos Downloads Documentation Buy Free Trial