This is a migrated thread and some comments may be shown as answers.

Automated testing using QTP with RadComboBox

3 Answers 92 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 2
Martin asked on 31 Jan 2008, 02:04 PM
We are using QTP (Quick Test Pro) for automated testing of our web pages. But our testers are having problems scripting tests for the RadComboBox control.

QTP works by loading a web page in Internet Explorer and populating fields with variables to perform validation tests and such like.

Do you know if it is possible to populate a RadComboBox in this way? Is there a hidden field that can be set to simulate the SelectedValue?


Thanks

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 31 Jan 2008, 03:14 PM
Hello Martin,

I am afraid I cannot completely understand what you are up to. Where are you going to validate the combobox - at the client or the server side? Can you send us step-by-step details of your task?

Regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Martin
Top achievements
Rank 2
answered on 31 Jan 2008, 04:52 PM
Hi Nick,

Thanks for getting back.

The RadComboBox is validated client-side. We are using the HP/Mercury test automation tool - Quick Test Pro v9.2 (QTP) for a lot of our validation testing. However, the tool does not appear to be able to record the 'Select' step that the RadComboBox requires to read the intended value from the WebService on demand. All we are really after is a way of replicating the 'select' step using QTP.

Do you know if this is possible using QTP?
0
Helen
Telerik team
answered on 01 Feb 2008, 01:11 PM
Hello Martin,

Unfortunately, we have not been able to work with QTP to test our controls yet. Currently, we are focused on building our tests using Selenium tool. It covers all our needs for the time being. It is easy to be extended and provides rich cross-browser support, which is really important to us. If you haven't check it yet, I suggest you give it a try. There are many people providing assistance in their forums as well.

I'm not sure whether a custom JavaScript could be executed via QTP, but in general RadComboBox items could be accessed via Client API. Another possible solution is to work directly with HTML DOM elements which represent RadCombobBox(see for the reference generated HTML by the control). To select a particular item in such a way, you need to perform the following:

1. Click on RadCombobBox arrow - represented by A with id = ComboID_Arrow.
2. Wait for RadComboBox items to appear.
3. Click on particular RadComboBox item - represented by LI element.


Hope this helps.

Regards,
Helen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Martin
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Martin
Top achievements
Rank 2
Helen
Telerik team
Share this question
or