Object Identification Configuration in UFT

Object Identification Configuration

In two ways we can Design Tests in UFT

1)    Object Repository based Test Design
2)    Descriptive Programming

Object Identification Configuration feature is related to Object Repository based Test Design Test design only.

What is Object Identification Configuration?

Configuring important properties for Objects to recognize them uniquely.

Why Object Identification Configuration?

Generally Objects have 20 to 30 properties, using that complete information recognizing objects is time taking process.

Some object may have dynamic property values, so recognizing that objects are difficult.


UFT has default Configuration for every Environment (Add in), default configuration based on Industry UI design standards.

When object identification is required?

    We are using Descriptive Programming for Test Design -No
    We are using OR based Test Design and developers followed UI design standards -No
    We are using OR based Test Design and developers Not followed UI design standards- Yes

Object Identification Configuration

Environment Level (Add in): Standard Windows
    Test Object Class: WinButton

Normal Identification
    Mandatory Properties
        native class
        text

    Assistive Properties
        height
        width
-------------------------
Smart Identification (Optional)

    Base Filter Properties
    Optional Filter Properties
-------------------------
Ordinal Identifier
    Index (0, 1, 2, 3....)
    Location (0, 1, 2, 3....)
    CreationTime (Only for Browser)
--------------------------------------------
Web
16 Classes of Objects

14 classes of objects - Normal Identification only (Normal identification, Ordinal Identifier)

 2 Classes of objects - Smart Identification (Normal Identification + Smart Identification, Ordinal Identifier)
--------------------------------
Normal identification
    Mandatory Properties
    Assistive Properties
    Ordinal Identifier
------------------
Smart Identification
    Mandatory Properties
    Assistive Properties
    Base Filter Properties
    Optional Filter Properties
    Ordinal Identifier
---------------------------------------------
a) Object Identification Process in case of Normal Identification only

b) Object Identification Process in case of Smart Identification.

Standard Windows
    WinButton

200 Buttons

100 Mandatory Properties
010 Mandatory Properties + Assistive Properties)
040 Base Filter Properties (Smart Identification)
040 Base Filter Properties + Optional Filter Properties (Smart Identification)
010 Ordinal Identifier---------------------------
i) Object Identification Configuration is Environment Level, Test Object Class Level
we can configure single object also.

Open Object Repository -> Select the Object and Add Properties
----------------------------------------
ii) Globalize the Object Identification Configuration

Configure the settings -> Generate Script -> Share the Script file-> Execute the file in all machines
--------------------------------------------------
iii) Diff configurations for Same Environment

3 Applications (Web)
Steps:

Configure 1st Application and Generate Script

    Come back to Default Configuration

Configure 2nd Application and Generate Script

    Come back to Default Configuration

Configure 3rd Application and Generate Script
------------------------------------------
Tool Settings Configuration and Globalize
------------------------------------------

1) File Menu -> Settings

2) Tools Menu -> Object Identification

3) Tools Menu -> Options
----------------------------------------
What is Globalize Tool Settings?

Providing common configuration for all machines in a project

Why Globalize Tool Settings?

Since UFT is I-Tier Application, it can't share services, so we need to Globalize Tool Settings.

How to Globalize Tool Settings?

Using "Generate Script" feature.
---------------------------------------------
        I-Tier Application        II-Tier, III-Tier and N-Tier
-----------------------------------------------------------------------
Services    Can't be shared            Can be shared

Resources    Can be shared            Can be shared
---------------------------------------------------------------
In UFT:

Services

Recording, Data Table, Step generator, Object Spy etc...

Resources:

Shared Object Repository file, Function Library file etc...

0 comments:

Post a Comment