if you have the same application screen with 7 drop down
boxes and approximately 70 values how do you test with QTP?

Answers were Sorted based on User's Feedback



if you have the same application screen with 7 drop down boxes and approximately 70 values how do ..

Answer / sagar

By Using DP

set descObj=Description.Create()
descObj("micclass").Value="weblist"

set itmWeblist=Browser().page().ChildObjects(descObj)

for i=0 to itmWeblist.Count
allitems=itmWeblist(i).GetROProperty("all items")
x=Split(allitems,";")
for j=0 to UBound(x)
msgbox (x(j))
Next
Next


I think the above code will work.. please let me know if im
wrong

Is This Answer Correct ?    2 Yes 0 No

if you have the same application screen with 7 drop down boxes and approximately 70 values how do ..

Answer / s

allITEMS =GetROProperty("all items") property should be
used.
x=Split(allITEMS,";")
for i=0 to UBound(x)
msgbox (x(i))
Next

OR
for i=1 to 29 'Assume there are 29 Items in the Listbox.
ListBox().GetItem(i) should be used.
next

Post your feedback here, I would like to know opinion.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c

8 Answers  


In one of the scripts the pwd in the DT was encripted. Can any one tell me how to I decript or undo the same?

3 Answers   BirlaSoft,


Write a code check the checkbox in the web table which is in the 4th row and fifth column (Use child item concept)

2 Answers   FIS, Wipro,


can i automate java web application using qtp web addin only not using java addin

1 Answers   Infosys,


did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions

3 Answers  






What are the major/ important methods, functions in QTP we use realtime testing

0 Answers  


What is BPT?

2 Answers   Allied Group,


How can i check all the button that are enabled in a widnows based application ? What script should i write for this ?

1 Answers  


What is the difference between per-action and shared?

0 Answers  


IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp GIVE CODE TO IT USING qtp

2 Answers  


anybody give me the real time example for descriptive programming of web application

7 Answers  


what is the syntax for regular expression in QTP? how to create user defined functions in QTP?

6 Answers   CTS, MBT, TCS,


Categories