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
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 |
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 |
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
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?
Write a code check the checkbox in the web table which is in the 4th row and fifth column (Use child item concept)
can i automate java web application using qtp web addin only not using java addin
did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions
What are the major/ important methods, functions in QTP we use realtime testing
What is BPT?
How can i check all the button that are enabled in a widnows based application ? What script should i write for this ?
What is the difference between per-action and shared?
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
anybody give me the real time example for descriptive programming of web application
what is the syntax for regular expression in QTP? how to create user defined functions in QTP?