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...


How can i check elements sorted in dorpdown using qtp..



How can i check elements sorted in dorpdown using qtp....

Answer / lak

1) Create an array to capture all the Weblist items - call
it as appArray
2) Sort the appArray to display all items in ascending order

For i = 0 to UBound(itemArray)
itemArray(i)
Next

- Again there is no sort function which is readily
available. You would have to code for the sorting to
something on similar lines -

for i = UBound(appArray) - 1 To 0 Step -1
for j= 0 to i
if appArray(j)>appArray(j+1) then
temp=appArray(j+1)
appArray(j+1)=appArray(j)
appArray(j)=temp
end if
next
next

3) Save this as sortedArray. Compare some of your original
appArray items to the sortedArray items in terms of
positions.

If they are different, your verification is a fail and if
an exact match, its a pass.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How Does Run time data (Parameterization) is handled in QTP?

2 Answers   Crea,


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

0 Answers  


If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?

7 Answers   Covansys,


write script to read and write data from file ?

2 Answers   HealthAsyst,


how we can know qtp has used smart identification machanism during the execution.

3 Answers   IBM,


Iam trying to write script for Rediffmail Page,in doing so the script line for go button is not accepting. Is their any other way other than . Browser("micClass:=browser").Page("micClass:=Page").Link ("micClasss:=Link","name=go")

2 Answers  


Explain script generated after applying database check point?

2 Answers  


Can any suggest me what is exposure testing?

0 Answers   Value Labs,


Reverse string without mid or streverse function.

1 Answers   Deloitte,


how we can do web browser using parametarisation in QTP ?

2 Answers   Efextra, Kanbay,


How many add-ins comes by default with qtp?

0 Answers  


Question:how many types of repositories in QTP9.2?and explain??

3 Answers  


Categories