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 |
How to findout the number of spaces with in STRING For Ex : STRING is " RAJ IS A SOFTWARE ENGINEER " Please send me the answer
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri
In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.
Can anybody help me by sharing the code for checkbox in qtp using vbscript.
recording is not a good programming practice.How to write effective script without recording.Which is the correct method explain in detail
How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?
What are the types of Object Repositories in QTP?
Hello everyone, I am trying to parametrize a script. Its clear to me that, we use data table to enter various text data. but if I want to change the radiobutton (e.g. if for first iteration I selected radio button 'A' and for second iteration I want to use 'B' radio button for second iteration) then how can I make it happen. I have tried to define the question but still if not clear plz tell me. Thanks everyone
How to handle the exceptions using recovery scenario manager In QTP?
what are the disadvantages of descriptiveprograming
unable to get item from the combobox using descriptive programing. can any one give me the peice of code to schedule the booking from one place to another using DESCRIPTIVE PROGRAMING.