Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / guest

Note : You need to take all the options of the weblist into
an array and try this logic

arr=array(1,2,4,1,2,6)
cnt=0
For i=0 to ubound(arr)

For j=0 to ubound(arr)
If i<>j Then
If arr(i)=arr(j) then
print arr(i)&"is repeated"
End if
End If
Next
Next

-Ganesh

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps involved in recovery scenario wizard?

977


Is it possible to split an action? How?

1110


distinguish between old version and new version QTP features.

2343


I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????

2715


how many maximum number of virtual users we can create?

2142


Explain the types of properties that quick test learns while recording?

1017


Explain about business process component? types and usage?

2049


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

1032


when to start the automation?

1940


How smart identification works in qtp ?

989


How to handle Java tree in QTP?

1330


If I change the property value at runtime is it effect is object repository?

1089


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

4594


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2517


Explain QTP using different development techniques ?

918