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

I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com

1475


How will you handle java tree in qtp?

621


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1411


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

1486


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

1582






How software tester can use constants and variables in scripts?

1684


tell me QTP standards ?plz

1514


How to import a test case present in ".xls" file to TD under a Test set?

742


How can I change object description or check point values in qtp?

552


What is the difference between run time object and test object in QTP?

564


How to do call a output parameter from one action to another action??/

1870


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1686


How many types of recording modes are there?

592


What is quicktest professional (qtp window?

592


Define Environment Variable in UFT and its uses?

603