Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2016 up to now | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2007


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

Re: [QF-Test] searching in drop-down menu


  • Subject: Re: [QF-Test] searching in drop-down menu
  • From: "Parandi, Nagraj S \(Nagraj\)** CTR **" <nagarajs@?.com>
  • Date: Wed, 12 Sep 2007 20:34:27 +0530

Hi Martin,
	I have a question in the same context as below.
I need to have a SUT script that will select a particular
value in the drop down menu. How can I achieve it.
To be precise
There is a combo box with ID intFrameGroup=0,Group=8_(_Live_SDHLR_).combo
and one of the drop down menu item's ID is popupInvokerClass:_JComboBox2.list.HCFPool
and the text value is HCFPool.Is there a function like setText() that I can use?
And one more que is how do I know that what are the methods provided by JList
since you mentioned about getSelectedValue(). Please clarify.
And let me know if you need further details on my queries.

Thanks and regards,
Nagaraj


-----Original Message-----
From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de]On
Behalf Of Martin Moser
Sent: Wednesday, July 11, 2007 7:59 PM
To: qftest-list@?.de
Cc: Ghazale Malek
Subject: Re: [QF-Test] searching in drop-down menu


Hi Ghazale,

some notes:

.) Does your combo-box really contain a text "test_produkt____" or does it
contain "test produkt    "?
) rc.check() takes more arguments than one.


If it contains the version without "_", you have to change your script to
following:
 rc.check(rc.getComponent("popupInvokerName:_carrier_product.cmbbx.list").getText()=="test
produkt", "check of text")

The next issue is, that a JList doesn't have a method called getText(),
perhaps getSelectedValue() helps you there.
If you want to check the current value of the combo-box, you have to take
the ID of combo-box. There getText() is supported.

If the issue is still open, you should send me your test-suite, that I can
have a deeper look into it.

Regards,
Martin

--On Mittwoch, Juli 11, 2007 14:53:52 +0200 Ghazale Malek
<ghazale.malek@?.de> wrote:

> Hi,
>
>
>
> I have a program which set an item to active or deactivated situation;
> this item would be showed later in the drop-down menue.
>
> To check this I have tried to write a script which searches in the
> drop-down menu to see if the item is there (if it is activated) or not.
>
>
>
> Rc.check(rc.getComponent("popupInvokerName:_carrier_product.cmbbx.list").
> get Text()=="test_produkt_____")
>
>
>
> The list is a JList.
>
> But I can't find why it doesn't work!!! It doesn't recognise the fetText.
>
>
>
> Thank you for your help
>
> Ghazale
>
>
>



--
Martin Moser                           martin.moser@?.de
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 14083


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



Videos Downloads Documentation Buy Free Trial