Hi,

How to give drop down values as input [Variable] from data
table in QTP?

If u know share with me.

Answer Posted / xyz

Firstly go to the first row
r = datatable.getsheet(1).rowcount
for i=0 to r-1
datatable.getsheet(1).setcurrentrow(i)
Browser().page().weblist().select(datatable.Value("Name",1))
This is for single select
If you want to enable multiselect property then
Browser().page().weblist().multiselect= 2
datatable.getsheet(1).setcurrentrow(i+1)
Browser().page().weblist().extendselect(datatable.Value("Name",1))
datatable.getsheet(1).setcurrentrow(i+2)
Browser().page().weblist().extendselect(datatable.Value("Name",1))
next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

598


after initiating one project for testing, when exacltly QTP tester role starts?

1407


hou can we use vb script in qtp could u tell me breafly

1743


How you can replace string in qtp?

574


What is the Difference between test object and run time object?

613






What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1723


how interviews will be on QTP?

1525


Is qtp supports uni-code?

618


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1525


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

1875


Hi All, I need code for how to execute qtp scripts from excell sheet

1467


what is the hierarchy to use properties in descriptive programming

1505


Can launch two instances of qtp on the same machine?

583


How to creating an output value using quicktest professional?

545


how can i pass a "cript"as a parameter in to a function

1462