Mailingliste - Einträge 2006


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

RE: [qftestJUI] Handling ComboBoxes


  • Subject: RE: [qftestJUI] Handling ComboBoxes
  • From: "Michaelis, Mark" <mark.michaelis@?.com>
  • Date: Wed, 25 Jan 2006 08:16:12 +0100

Hello Greg,

sad but true your solution did not work. While the ComboBox-Popup appears
after the first Mouse-Event the List cannot be found. I even added a "Wait
for Component"-Node to ensure that there is no timing problem.

If I read the log (see below) correctly, then qftestJUI tries to find the
List in the non-active window behind the modal dialog (non-active Window has
title "neuer Benutzer -..." while the dialog has the title "Benutzer
auswählen..."). It seems as if the dialog is not accepted because it is
modal. Now one possible solution might be to adjust the penalty for
modal-mismatch. But this is no option (reason not so important here).
Another solution, which won't be nice but acceptable is to have also a
"Generic Modal Dialog" and add an argument to combobox.selectItem if the
container of the ComboBox is modal or not.

Do you see any better solution?

Regards,
  Mark

Now follows the log of the "Wait for Component"-Node I added:

No matching component
Component information
Looking for matching top-level components
Calculating probability for
[...].toolkit.ManagedJFrame[UserManagerFrame,7,20,800x600,invalid,layout=jav
a.awt.BorderLayout,title=neuer Benutzer -
[...],resizable,normal,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=ja
vax.swing.JRootPane[,4,30,792x566,invalid,layout=javax.swing.JRootPane$RootL
ayout,alignmentX=null,alignmentY=null,border=,flags=481,maximumSize=,minimum
Size=,preferredSize=],rootPaneCheckingEnabled=true]
Geometry probability: 100%
This is not the active window, penalty: 99%
Combined probability: 99%,  acceptable
Calculating probability for
[...].toolkit.chooser.UserChooser[UserChooserDialog,603,226,375x564,invalid,
layout=java.awt.BorderLayout,modal,title=Benutzer
auswählen...,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootP
ane[,4,30,367x530,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX
=null,alignmentY=null,border=,flags=385,maximumSize=,minimumSize=,preferredS
ize=],rootPaneCheckingEnabled=true]
Geometry probability: 100%
Modal mismatch, penalty: 0%
Combined probability: 0%, not acceptable
Got 1 top-level components

Parent component:
[...].toolkit.ManagedJFrame[UserManagerFrame,7,20,800x600,invalid,layout=jav
a.awt.BorderLayout,title=neuer Benutzer -
[...],resizable,normal,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=ja
vax.swing.JRootPane[,4,30,792x566,invalid,layout=javax.swing.JRootPane$RootL
ayout,alignmentX=null,alignmentY=null,border=,flags=481,maximumSize=,minimum
Size=,preferredSize=],rootPaneCheckingEnabled=true]
Probability: 99%
No components match class javax.swing.plaf.basic.BasicComboPopup
No matching component

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Videos Downloads Dokumentation Kaufen Gratis Testen