I have a list box which contains duplicate values e.g.
A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list
box .
Scenario #1 : I have to check whether any values are there?
Scenario #2 : If duplicate values are there,then how many
time it is getting duplicated?
Svenario #3 : how can I test presence of items in list box
ommiting duplicate values?
Answer Posted / m.ganesh
ItemsCount=Browser("creationtime:=0").page("title:=.*").WebList("name:=lccp_src_stncode").GetROProperty("items
count")
print "items count"& ItemsCount
if (ItemsCount)<>0 then
print "this is Items Count"&ItemsCount
End If
-Ganesh
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.
Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.
What is the XML file architecture ?
explain how to write vb script in qtp?when will you write own script?
Can we write winrunner language i.e TSL in QTP tool?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
how to find that tools work well with ur existing system?
how to test use the quality control .how to verify the image verification
What is the file extension of the code file and object repository file in QTP?
in my application,validation message has in japanise language.how to validate this message is appears properly or not
If I change the object name in one action will it be updated in all the actions? Or not?
How will you find the current time of the remote machine using QTP script?
What are the types of object repositories? Which one is you are using?
What contains Data Driven Framework document in qtp?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?