0 Shares 1423 Views 1 Comments

Mystery of different hierarchy

Sep 28, 2012
1423 Views 1

You must have noticed the discrepancy in the object hierarchy between the Object Spy and object repository for the same object. For example, if you spy on username field on Mercury Tours website, you will notice that it is contained in many nested webtables after Browser > Page. Whereas if the same object (username edit box) is added into the object repository, it does not show those nested tables.

Object Spy

object spy showing nested webtables

Object Repository

Object Repository – Nested Webtables does not show up

QTP sieves away the extra objects in hierarchy for better readability and maintainability when objects get added into the OR. You can dig into the hierarchy and reach to the object you want to, because of the application inner control hierarchy. Like, given a parent as Browser, you can recursively run through all its children(Page, WebTable, WebTable …) until you find the username edit box control. You basically need the higher and lower level in the hierarchy to specifically point to a particular object. QTP removes the rest, as they might just function as a container or framing host for the objects.

The full hierarchy in the Object Spy enables us to identify the parent objects from where a particular object can be retrieved during run time. Object Spy is a developer tool, which helps you to get the insight of how the control are structured or the inner control structure and so it has the full description of the objects you spy, in order to provide you the complete detail of the application under test.

Object spy does not store the full description of the objects, it just displays all the information. Whereas Object Repository stores the description and properties. Just assume how bulky it will be when the OR will store the full description for each and every object. Also it will contain redundant information, which is of no use at all to you for automation. The full description in the object spy helps in descriptive programming extensively.

 

You may be interested

UFT Patch Updates – UFT 14.03
Unified Functional Testing
1178 views1
Unified Functional Testing
1178 views1

UFT Patch Updates – UFT 14.03

Saket - Mar 11, 2018

Post the launch of UFT 14.0, there are three patch updates has been released including a number of features and enhancement. Recently Micro Focus unveiled third patch…

Setting up Web Service Automation Project
Katalon Studio
1227 views
Katalon Studio
1227 views

Setting up Web Service Automation Project

Saket - Oct 24, 2017

Web services are specific services that can be published and called over the Internet by client applications. Katalon Studio supports functional testing of web services. This topic…

Setting up Mobile Automation Project in MacOS
Katalon Studio
1042 views1
Katalon Studio
1042 views1

Setting up Mobile Automation Project in MacOS

Saket - Oct 09, 2017

Using Katalon Studio, mobile tester can design automation test for both Android and iOS to run on physical devices, cloud services and emulators. This tutorial explains how…

One Comment

  1. Pingback: LeanFT Tutorial #3: Object Identification Center (OIC) - Automated-360

Leave a Comment

Your email address will not be published.

Most from this category

Join The Growing Group of 15000+ Test Automation Engineers

Signup for our newsletter and get access to free downloads, as well as tips, tricks and techniques and various test automation resources.
Name
Email Address
Secure and Spam free...