Mailingliste - Einträge 2006


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

Re: [qftestJUI] How to check that a certain string appears in JLIst


  • Subject: Re: [qftestJUI] How to check that a certain string appears in JLIst
  • From: Karlheinz Kellerer <Karlheinz.Kellerer@?.de>
  • Date: 27 Jul 2006 12:19:16 +0200

 Hi Oleg,
 
 you can use a construct like the following:
 
 + try
   - Wait For Component( listId@Bread , timeout = 0)
   + catch (IndexNotFoundException) with attribute "Max Error Level" = "Error"
     
 listId@Bread is the "Special Syntax" described in manual chapter "8.3  Special
 Id-syntax for direct element access".
 
 Hope this helps.
 
 Best regards, 
     Karl 
 
 
 Oleg Frenkel <ofrenkel@?.com> writes:
 
 >    I wonder what would be the best way to check that a certain string
 >    appears in JList. For example, I need to ensure that Bread is always
 >    on the menu:
 > 
 > 
 >    Menu List:
 > 
 >    Butter
 > 
 >    Bread
 > 
 >    Cheese
 > 
 > 
 >    The check would succeed with the above list. However, with the list
 >    below, the check would fail:
 > 
 > 
 >    Menu List:
 > 
 >    Butter
 > 
 >    Cheese
 > 
 > 
 >    Thanks,
 > 
 >    Oleg
 > 
 > 
 
 -- 
 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 Dokumentation Kaufen Gratis Testen