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

What is the syntax to call one script from another?

0 Answers  


How to handle recovery scenario for a application crash.write script for this.

2 Answers   Polaris, TCS,


what you mean by artifact,milestone...

0 Answers  


QTP WAS WORKING FINE BUT TODAY I GOT THE ERROR , THE MEMORY COULD NOT BE READ -REFERENCE MEMORY ,pPLEASE REPLY URGENT WHAT IS THE SOLUTON

1 Answers  


How to invoke Mozilla from QTP thru VB Script

2 Answers  


what is smart identification?

7 Answers  


How to add a runtime parameter to a datasheet?

1 Answers   Crea,


how can we merge the object repositories?is ther any option in qtp to merge the object repositories if we have two or three object repositories?

6 Answers   IBM,


I have multiple radio buttons i need to select a radio buton and i dont want to hard code i have a generic function for it there i have used select#0 so it selects first radio button but for other script i want to select the 4th radio button how i can make it still more generic

4 Answers   Accenture, Acentia, LM,


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

0 Answers  


What is keyword driven framework, what is "key" in It.

2 Answers   IBM,


What is the short cut keys for the following?

0 Answers  


Categories