0 Shares 418 Views 1 Comments

Mystery of different hierarchy

Sep 28, 2012
418 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

Setting up Mobile Automation Project in Windows
Katalon Studio
77 views
Katalon Studio
77 views

Setting up Mobile Automation Project in Windows

Saket - Sep 20, 2017

This tutorial explains how to setup a mobile automation project and test a mobile app using Katalon Studio on Windows. This tutorial assumes that you are familiar…

Katalon Studio GUI Overview
Katalon Studio
147 views2
Katalon Studio
147 views2

Katalon Studio GUI Overview

Saket - Sep 14, 2017

GUI Overview After installing and setting up Katalon Studio for your automated test, you must understand the GUI. In this post we will walk you through the…

LeanFT Tutorial #4: Application Model Overview
LeanFT
125 views1
LeanFT
125 views1

LeanFT Tutorial #4: Application Model Overview

Saket - Sep 10, 2017

In this post we are going to focus on Application Model in LeanFT. Refer our earlier posts on LeanFT Getting Ready with LeanFT Browser Extensions and Settings…

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