Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

An objects-hierarchy discrepancy between the object-spy and the script's recording

This is a discussion on An objects-hierarchy discrepancy between the object-spy and the script's recording within the QTP forums, part of the Software Testing category; Hi all, There is a discrepancy between the object-spy and the recorded script regarding the objects hierarchy of the same test object. It can be seen in applications like web ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 11-29-2008
Junior Member
 
Join Date: Feb 2008
Location: Israel
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
autotester is on a distinguished road
An objects-hierarchy discrepancy between the object-spy and the script's recording

Hi all,
There is a discrepancy between the object-spy and the recorded script regarding the objects hierarchy of the same test object.
It can be seen in applications like web applications and .Net applications, that the Object-spy's objects-hierarchy of a test object is not the same as the corresponding one of the recorded line as shown in the script.
The Object-spy's hierarchy is generally much deeper in comparison to the recorded script's line regarding the same test object in the application, how come?

Regards,
autotester
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-01-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,438
Thanks: 15
Thanked 147 Times in 138 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: An objects-hierarchy discrepancy between the object-spy and the script's recordin

hi autotester,

I don't know how come it is possible, i am using QTP to automate web based application, with (dot net). I haven't faced the problem what u have mentioned in the thread, if possible please attach screen shot. I will help u as much as i know..

Thanks
Deepasree
Reply With Quote
  #3 (permalink)  
Old 12-02-2008
Junior Member
 
Join Date: Feb 2008
Location: Israel
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
autotester is on a distinguished road
Re: An objects-hierarchy discrepancy between the object-spy and the script's recordin

Hi Deeparsee,
1. Thanks for the reply
2.Let's take for example the Mercury tours sample web application.
In the first page, let's take for example the UserName edit box.
In the object spy
The UserName edit-box is contained in 6 nested web-tables which are contained in a page which is contained in a browser, meaning, the UserName is the 9th level in the objects hierarchy.

In the recorded script (Object Repository)
The UserName edit-box is contained in a page which is contained in a browser, meaning, the UserName is the 3rd level in the objects hierarchy.

How come?

Regards,
autotester
Reply With Quote
  #4 (permalink)  
Old 12-03-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,438
Thanks: 15
Thanked 147 Times in 138 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: An objects-hierarchy discrepancy between the object-spy and the script's recordin

hi autotester,

I don't know why you are worried about this things, ok let me come out as far as i know.

1. we need application to perform validation i mean if there is a site then only we can login, or register or perform any activity which we need

2. it is a web based application so naturally we need browser, page and then some controls
i mean textbox, web buttons, combo, list, link etc

3. web table home: where the login validation is taken place in the home page know that's why theweb table is shown here

4. sign on link :This link lets us to know the user is registered

5. Atlanta to las vegas: as per my understanding there may be some offers like that(i am not sure thi is my understanding)

6.When the user will be able to login the site. After registeration isn't it? so you can view the registeration table here

7. Once the user has registered the site he/ she we should able to know when the user registered the site for future use

8. Then finally the text box to enter the values to login

ok all these information is shown when you spy the object which is a internal information which allows the user to identify the hierarchy of objects. I think now you will get what i am communicating...

Then comming to your point that is you can view the username at the level three in the OR
when we are recording an object the major role of OR is to indicate where and how the object is recognized.
I mean First Browser, Page and then text box

please note: spy shows overall hierarchy of object, but OR shows how and where the object is recognized in the application

Thanks
Deepasree

Last edited by deepasree; 12-03-2008 at 12:55 AM.
Reply With Quote
  #5 (permalink)  
Old 12-03-2008
Junior Member
 
Join Date: Feb 2008
Location: Israel
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
autotester is on a distinguished road
Re: An objects-hierarchy discrepancy between the object-spy and the script's recordin

Hi Deeparsee,
1. Thanks
2. Why should the object spy show the overall hierarchy which is different
from the OR hierarchy?
Since our interest as testers is only to recognize uniquely the object, why
should we need extra information from the object spy?

Regards,
autotester
Reply With Quote
  #6 (permalink)  
Old 12-03-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,438
Thanks: 15
Thanked 147 Times in 138 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: An objects-hierarchy discrepancy between the object-spy and the script's recordin

hi autotester,

Object spy is very useful to idenntify the object properties, when your are using descriptive programming then spy comes into picture.

Thanks
Deepasree
Reply With Quote
  #7 (permalink)  
Old 12-03-2008
Junior Member
 
Join Date: Feb 2008
Location: Israel
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
autotester is on a distinguished road
Re: An objects-hierarchy discrepancy between the object-spy and the script's recordin

Hi Deeparsee,

1. Thanks for the reply.
2. In case of using the object spy for descriptive programming like you wrote:
Regarding the hierarchy of the object spy,If we will take again these
example of the UserName edit-box from the Mercury Tours sample web
application, we will use the hierarchy according to the object spy, which
includes all these 6 nested web-tables which leads to the edit-box.
Isn't this path (which leads to the edit-box) too long and hard to
implement?

Regards,
autotester
Reply With Quote
  #8 (permalink)  
Old 12-04-2008
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,438
Thanks: 15
Thanked 147 Times in 138 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: An objects-hierarchy discrepancy between the object-spy and the script's recordin

hi autotester,

Please don't get confused, have u written descriptive programming, the concept what i explained will come into picture when you use descriptive programming. Why you are worried about object identification we are not going to identify the system identifies and it tells the view where the object is that's it.

Thanks
Deepasree
Reply With Quote
  #9 (permalink)  
Old 12-04-2008
Contributing Member
 
Join Date: Nov 2008
Location: chennai
Posts: 62
Thanks: 4
Thanked 1 Time in 1 Post
senthilvenu is on a distinguished road
Re: An objects-hierarchy discrepancy between the object-spy and the script's recordin

Quote:
Originally Posted by deepasree View Post
hi autotester,

Object spy is very useful to idenntify the object properties, when your are using descriptive programming then spy comes into picture.

Thanks
Deepasree
Object Repostories also able to view object properties and i am not using any decriptive programming. can you please tell me how to use object spy in decriptive programming with real example...

Thankds
senthil Venu
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
abt object repository,virtual objects psuresh1982 C and C++ 5 04-20-2009 08:28 AM
Retrive or see objects added to object repository bndivya QTP 1 04-11-2008 10:54 PM
How QTP recognizes the objects stored in object repository suneetham QTP 1 02-07-2008 11:16 AM
how to minimize the storage of objects in Object Repository ? naga.sd.k QTP 4 12-19-2007 05:33 AM
How to add the Oracle form 6i objects in object repository gopathipraveen QTP 0 07-11-2007 07:36 AM


All times are GMT -4. The time now is 06:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved