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 Exactly we can find out the INDEX No. of any object of
an application when we test that application in QTP? Explain
this by giving me the example of all LINKS of G-Mail
(including home page, User-account page and all possible
pages you ever seen in G Mail)?????? and if your answer is
that as per appearance of objects(LINKS) in application we
can find out the index number in application then tell me
how you find out which object(LINK) having INDEX No. 1,2,3
and so on and how you say which object(LINK) is appeared
first and which is last?

Answer Posted / udham

Hi
I also faced the same question .i tried hard 2 find the solution but didn't get anywhere .i tried many times with QTP.
This is the solution which i get.

this will tell u the index no. at execution time.
This is not the exact answer .this is called programming jugad.

set c = description.create
c("micclass").value = "Link"//i m using link only .u can use any other object type also.

set obj = b().p().childobjects(c)
msgbox obj.count //will give the count of all links on page

for i = 0 to objcount-1
b().p().link("index:="&i).highlight//this will highlight the link with index no 0 in the application as initiallly the value of i is 0.
msgbox i //printing the value of index
next

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you create new action in qtp?

1142


how u will evaluate the tool for test automation?

1868


How did you use regular expressions in QTP and also in WR?

2653


What is the quicktest professional testing process?

1166


How to release all resources file from the QTP?

1575


How to use Environment parameterization? Explain with an example.

1985


How we can import data from database?

1230


What is 'sleep' in sync point?

1114


How to handle the exceptions using recovery secnario manager in quicktest professional?

1147


How to give a call to another action from one action?

1103


we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

2079


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

1025


Explain the parameter in qtp?

1068


Diff b/w test scenario's and test Procedures?

2137


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

3220