Sunday 10 November 2013

QTP Smart Identification for identify the object in application


-> Whenever the QTP unable to find an object in application because of the

object got changed or the object are not unique, then the script get fails.

-> if we configure the smart identification for the object class , then

there is get chance to QTP able to identify the object.

-> smart identification is more complex, but its flexible.

-> smart identification has two type of property

a) Base filter Properties
b) Optional filter Properties

a) Base filter properties

    These are the fundamental properties of the perticular object class,

that can not be changed.
EX: For link html tag always <A>
    For Edit Html Tag always INPUT
These are base filter properties which are not changed always.

b) Optional Filter Properties

Except Base Filter Properties, rest of the properties are called Optional

Filter Properties.


Smart Identification Process

1) After Mandatory Properties and Assistive properties only QTP move into

Smart Identification. So Smart identification not check the properties from

Mandatory and Assistive properties.

2) Smart identification starts to find the all object in the perticular

page. That means

Browser("Page").Page("Page").WebEdit("q").click

Its take all the object in this page -> Browser("Page").Page("Page")

3) Then its take all object and compare those object with base Filter

properties, so now its reduce the count of the object.

4) then its take that object and compare with optional filter properties to

find out the expected correct objetc.

5) If object unable to find by QTP for above process then its move to

ordinal identifier.

No comments:

Post a Comment