Mailing list - Entries of 2005


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

Re: [qftestJUI] Using check node to find state of JButton doesn't work?


  • Subject: Re: [qftestJUI] Using check node to find state of JButton doesn't work?
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 24 Jun 2005 10:12:02 -0000

Hello Bill,

what's the class of the button? If you're not sure, set the option
"Record->Components->Record system classes only" and record the button
in a new test-suite, then look at the class attribute in the component node.

Currently qftestJUI treats JToggleButton (and thus JCheckBox and
JRadioButton), as well as JCheckBoxMenuItem and JRadioButtonMenuItem
as selectable and offers the appropriate check. Have we missed
something? Pure AWT components at least.

Anyway, you can use Jython for the check:

com = rc.getComponent("id of button")
rc.check(com.isSelected(), "Check button selected state")


Best regards,
    Greg

William Deegan <bill@?.com> writes:

> Greetings,
>
> I'm trying to check the state of a jbutton before clicking it
> to create procedures for setting/clearing the button.
>
> Unfortunately I cannot check the state, when I try to create a check node
> on the button I'm presented with the following possibilities:
> * Text
> * Enabled State
> * Image
> * Image (Visible Region)
> * Geometry
>
> What I'd like is a "is selected"  to check if the button is pushed or not.
> Am I missing something?
> Can this be done using Jython?
>
> Thanks,
> Bill
> _______________________________________________
> qftestJUI-list mailing list
> qftestJUI-list@?.de
> http://www.qfs.de/mailman/listinfo/qftestjui-list

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


Videos Downloads Documentation Buy Free Trial