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
How many types of trigger events are there in qtp?
In qtp, how you can exit for loop?
How to use the object spy in quicktest professional (qtp) 8.0 version?
How to connect to a database?
write script for bitmap image?
How to carry out bit map check points in QTP
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?
How to analyzing the checpoint results?
what is review
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
What are the different recording modes?
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
What are metrics and matrix?
What are advantages of test automation?