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
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
How will you handle java tree in qtp?
Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com
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
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?
How software tester can use constants and variables in scripts?
tell me QTP standards ?plz
How to import a test case present in ".xls" file to TD under a Test set?
How can I change object description or check point values in qtp?
What is the difference between run time object and test object in QTP?
How to do call a output parameter from one action to another action??/
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
How many types of recording modes are there?
What is quicktest professional (qtp window?
Define Environment Variable in UFT and its uses?