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

How to invoke Mozilla from QTP thru VB Script

2 Answers  


Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!

0 Answers   Infosys,


According to use, how virtual object is different from object spy? If Qtp is not learning a sub-menues. What should we done? how would we manage on the expert view too? alkaa.dugaal@gmail.com

1 Answers   HCL,


can i compare two databases using QTP ?

0 Answers  


I have a 10 lines of qtp script, while executing i got an error at line 7 but i dont want to stop the execution i want to continue the execution up to last line and display the test result window, wts the syntax we use?

3 Answers   BirlaSoft, Collabera,






What is the use of an object spy tool in qtp?

0 Answers  


What test you perform mostly? Regression or retesting in your testing process?

0 Answers  


what is the difference btn risks & Therads in the Test plan documentation?

0 Answers   Accenture,


How will you handle java tree in qtp?

0 Answers  


can somebody send the script to write a multiplication table in notepad through qtp

3 Answers   AppLabs,


hi This is Harish.1. What is object repositery .2. what is frame works in QTP,what is keyword driven frame work,explain it and how to associate the folders.3.the build is developed in java, can we write scripting in vb .4.what is discriptive progaram,how to write it.5.what is process of QTp testing.6. how to associate the shared repository. 7.what is implicit and explicit 8.what is runtime data please replay me regards Harish

3 Answers   Syntel,


Give me diffrent script in QTP for Webpage(Java and .Net),WindowsBased Applications,Java application,.Net application...

2 Answers   TCS, Virtusa,


Categories