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
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
Explain different type of event trigger option.
What do you to script when objects are removed from application?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?
How many ways we can parameterize data in quicktest professional (qtp)?
Can anybody post some real time scenario in qtp? please its very urgent.
What is the parameterization? Give one example?
Explain the types of object repositorys in qtp?
What is the difference between Keyword Driven test and Data Driven test?
how to prepared for first for the first interview?
What are the key points to create a framework in QTP for oracle forms?
HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
What is active screen?
Which scripting language used by quicktest professional?