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 file extension of the code file and object repository file in QTP?
banking project description for software tester
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing
how to explain a claims and insurance project?
How many tabs are available to view your test in a test pane and what are they?
What is CMMP and CMMH?
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
Explain types of output values?
How does quicktest professional identifies the object in the application?
Explain about datafile/verification of date file when file is not available in local system?
what is run action?
Difference between test object and run time object?
How many types of recording modes in qtp? Which will be used when?