0 Shares 553 Views 2 Comments

Extended Find mechanism of NameMapping in TestComplete

Apr 08, 2013
553 Views 2

Extended Find mechanism of NameMapping in TestComplete

In TestComplete when we map an Application object using Name Mapping, TestComplete also maps all the parent nodes of that particular object node starting from Sys.

To illustrate the above problem, lets take a scenario of an application which contains dock panel and the test require to undock the panel and then perform some operation on it. When we undock a dock panel some of the intermediate containers might get deleted or some more gets created. For example, in the default layout of panel in an application, the fully-qualified name of a panel object may be as follows:

And when the panel is undocked, the object hierarchy looks like:

As we can see ,the hierarchy structure of the panel changes dynamically,i.e the intermediate containers are getting added or deleted.Due to this issue the NameMapping created for one layout cannot be used in the other layout.One way of getting rid of this issue is that we create the different NameMapping for the different layouts but it will make object dependent on the layout.To overcome this problem NameMapping provides the concept of Extended Find criteria.

When Extended Find Method is enabled ,we  can omit the parent hierarchy of the object to some level and map the object to the parent node whose properties and value remain constant throughout. When the script is executed with this method enabled, this setting instructs TestComplete to find the mapped object in the descendant hierarchy of the mapped parent object instead of the direct child object.

In the above example, we can  the change the hierarchy and make the  Window(“PanelClass”, “Panel Caption”) child object of the  Process(“AutomatedApp”) object. By doing so we have moved the child object to a stable object eliminating all the variable objects in between.

The steps that needs to follow to use this particular method:

1.First we need to enable this method.For the same follow the steps as given below.

  1. Right click any where in Name Mapping window and select the “Field Chooser” option from the context menu.

    Select Field Chooser from Right-Click Menu Options

    Select Field Chooser from Right-Click Menu Options

  2. Drag the “Extended Find” option from the Field Chooser and drop the same in Name Mapping window

    Drag the Extended Find Field to the Mapped Objects fileds

    Drag the Extended Find Field to the Mapped Objects fileds

  3. Close the Field Chooser window

2.Select and drag the object in Name Mapping whose parent hierarchy changes dynamically on run time and drop it below the stable object.

Select and Drag Object to Required Label

Select and Drag Object to Required Label

3.Click on the Extended Find Method check box which appears adjacent to the object.

Select Extended Find

Select Extended Find

This method is time consuming method as TestComplete search for the mapped object in all the descendant nodes of it.

Note : If you want to disable this setting simply uncheck the box adjacent to the mapped object in Name Mapping window and update the object hierarchy manually using the “Map Object” option that appear in Tools toolbar.

Apart from this method we have Find and FindAll method in TestComplete. Find more details in the last post Object Identification in TestComplete – Descriptive Way.

Happy Learning!!!!

You may be interested

Setting up Web Service Automation Project
Katalon Studio
240 views
Katalon Studio
240 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
241 views1
Katalon Studio
241 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…

UFT Jenkins Integration
Unified Functional Testing
795 views
Unified Functional Testing
795 views

UFT Jenkins Integration

Saket - Oct 03, 2017

In our earlier post, we got to know the easy integration of UFT with GIT. This post focuses on integration of UFT and Jenkins. I have also…

2 Comments

  1. I must appreciate the content you posted. It’s well-structured, concise and quite helpful. If there is any scope of improvement that I can see, it is at grammatical level of the presentation.

    Reply

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