Mailing list - Entries of 2005


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

Re: [qftestJUI] How to record a check image of a Jmenu's submenu


  • Subject: Re: [qftestJUI] How to record a check image of a Jmenu's submenu
  • From: Karlheinz Kellerer <Karlheinz.Kellerer@?.de>
  • Date: Thu, 20 Oct 2005 19:27:03 -0000

Hi Rob,

unfortunately there is no simple "automated" way to check the menu content like it is
available for items of complex components with the "Check items" node.

The problem with image checks is, that they are very weak and will break with the
slightest change in of geometry, color or font etc. But there should be no
problem to record this kind of check for your menus.

Your idea to write a SUT script for this task therefore can be the solution to
go. One problem you may face is how to specify the component of the
item to check. Here a generic menu item component-node under "Windows and
Components" can do the trick, where your leave all attributes empty except the
structure information (and the id and class name, of course). You may need to
do a little bit of experimentation with this.

Best regards,
    Karl



"Robert Slifka" <rslifka@?.com> writes:

> Attaching a screenshot to demonstrate what I'm trying to test.  I'm
> adding things to an MRU menu and I want to verify the menu against a
> 'golden' copy.  I.e. "the menu should look like X after I add some items
> to it".
>
> Rob
>
> > -----Original Message-----
> > From: qftestjui-list-bounces@?.de
> > [mailto:qftestjui-list-bounces@?.de] On Behalf Of Robert Slifka
> > Sent: Monday, October 17, 2005 6:00 PM
> > To: qftestjui-list@?.de
> > Subject: [qftestJUI] How to record a check image of a Jmenu's submenu
> >
> > Hi all,
> >
> > My goal is to verify the contents of a Jmenu (i.e. a pull-right).
> > However all I can do is screenshot the individual menu items.
> >  The problem is that paintComponent in Jmenu paints the menu
> > item, so a screenshot of the Jmenu just gives you the single
> > line pull-right.
> >
> > I'm thinking I could write an SUT with a parameterized list
> > of the menu item names, but of course it would be nice if
> > there were a more automated solution :)
> >
> > Thanks,
> >
> > Rob
> >
> > _______________________________________________
> > qftestJUI-list mailing list
> > qftestJUI-list@?.de
> > http://www.qfs.de/mailman/listinfo/qftestjui-list
> >
>
> _______________________________________________
> 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 Documentation Buy Free Trial