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

I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

0 Answers   Wipro,


Can we add the function library directly from scripting in qtp instead of adding from resource tab?

5 Answers   IBM,


How to test login page by using QTP

6 Answers  


What is difference between version 6.5 and 8.2 in QTP?

0 Answers  


Can we create test script with out Step Generator?

4 Answers  






What is the diff between image and bitmap check point?

0 Answers  


My Application is a client server application , but there is one functionality , when we click on one particular icon it launches web browser . When I am recording in QTP , By select approprait web add in also , it not able to record in web page , I am able to record till click on the icon. Please provide me how to over come this type of problem.

2 Answers  


can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function

5 Answers  


how to calculate no. of repeating characters in a a string..please give me the code

14 Answers   CTS, Hexaware,


write a function to read the items from Combobox of Flight Reservation application and save in excel.

5 Answers  


What is parameterization? What is syncronization pt.?

3 Answers   Semantic Space, SRM,


What is the difference between property and method?

2 Answers  


Categories