Hi,

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

If u know share with me.

Answers were Sorted based on User's Feedback



Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share ..

Answer / ramesh

what u mean by drop down values ...
sorry i'm not clear with the question

Is This Answer Correct ?    0 Yes 0 No

Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share ..

Answer / babu

Can you explain little bit more wat exactly you want.

Is This Answer Correct ?    0 Yes 0 No

Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share ..

Answer / 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

More QTP Interview Questions

What is the latest version in QTP?

55 Answers   Bharti, Polaris, US Technology,


How can we use the "CreateObject("Wscript.Shell")" in QTP and what is the definition and purpose of it?

2 Answers  


Write a QTP script to print all the link names displayed in a web page

4 Answers   TCS, Virtusa,


Explain process of smart Identification in QTP?

0 Answers  


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)?

0 Answers  






How will you handle the situation when object is not captured during record?

2 Answers  


Hi All, Can anyone provide me the license for QTP 9.5.... My Email ID: khanbro@rediffmail.com

0 Answers  


the question was on what techonlogy u been working on i said VB then he asked me the addin for VB in Qtp?

4 Answers   BirlaSoft,


What is checkpoints for qtp?

0 Answers  


what is test data

4 Answers   Wipro,


w is active screen

2 Answers   GCI, Wipro,


How to Map network drive in QTP

3 Answers  


Categories