Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2016 bis heute 2015 | 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


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

Re: [QF-Test] 'Check enabled state' node not working correctly with submenus.


  • Subject: Re: [QF-Test] 'Check enabled state' node not working correctly with submenus.
  • From: "Robert Lahmer, QFS support" <support@?.de>
  • Date: Fri, 27 Apr 2007 09:55:47 +0200


Hello Adrian,

you are right, a submenu is also a JMenuItem and hence you can use the
'Check enabled state' node for it. The problem might be that you expect an
exception to be thrown, in case the JMenuItem is not enabled - but it's
just an error! You should set the option 'Throw exception on failure' in
the check node, if you want to abort the test execution.

Best regards,
   Robert



--On Donnerstag, April 26, 2007 15:17:00 +0200 "Adrian Chamberlain
(BE/ETL)" <adrian.chamberlain@?.com> wrote:

'Check enabled state' node not working correctly with menu items which
are submenus.  A submenu is of course a menu item (i.e. JMenu is
a subclass of JMenuItem).

If the 'Check enabled state' node is used to determine if a submenu is
enabled the check node never fails, even when the submenu is
disabled (greyed out).

For example:

MENU
---------
item 1
item 2
item 3
submenu 1
item 4
item 5

Using the 'check enabled state' node to determine if menu item 'submenu
1' is disabled  never fails (i.e. no CheckFailed exception is thrown).

Given that 'submenu 1' will be a JMenu and given that JMenu is a subclass
of JMenuItem, why does the 'check enabled state' node not work correctly
in this case ?
Any help appreciated.

Regards
Adrian

_______________________________________________
qftest-list mailing list
qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list




--
Robert Lahmer
Quality First Software GmbH                http://www.qfs.de
Tulpenstr. 41                           Tel: +49 8171 919874
DE-82538 Geretsried                     Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer     HRB München 140833




Videos Downloads Dokumentation Kaufen Gratis Testen