Sie sind auf Seite 1von 18

Confidential. Strictly for internal circulation only.

1
Object Identification
Object repository
Object Identification Window
Smart Identification
Difference b/w identification methods
Mapping custom class to standard class

Runtime Object Properties / Methods
Test Object Properties / Methods
Difference between RO & TO Properties
Day 2
2

Object Identification
Object Spy
Object Identification
This concept is tells about how QTP is identifies objects while running and
recording session.
During Runtime
Step1:-
Look for class and logical name
in script

Step2:-
Search for the same class and
logical name in object repository

Step3:-
Identify the object in application
using properties of the object
that stored in recording time.
During Record time
Step1:-
QuickTest gets information about
object from OS. Ex. Class

Step2:-
Identifies what properties need
to be recorded based on TOM

Step3:-
Creates an unique description
based on TOM and stores in
object repository as a test object.
3
Runtime Object Identification
Step1 Look for
Logical Name
Step2 Search for
Same Logical Name
Step3- Object
Properties
Step4- Original Object in
application
4
Object repository (OR)
Object Repository is the mind for QTP
The objects which are recorded using any recording type will be
stored in OR
The objects which are there in OR called as Test Objects

Using OR we can

1. Add objects
2. Delete objects
3. Modify Properties
4. Export objects to a shared file

5
Object Repository Window
Resources Object Repository
Test Objects List
Object Properties
6
So how QTP creates unique description for an object?
QuickTest Identifies object class with the help of OS and maps to
any appropriate test object class available in object identification
window.
Records all available mandatory properties and checks for unique
description
If recorded description is unique then this description will be moved
to OR
If it is not unique then QTP will record assistive properties to create
unique description
QuickTest learns one assistive property at a time and stops as soon
as it creates a unique description for the object
If the combination of all defined mandatory and assistive properties
is not sufficient to create a unique test object description, QuickTest
also records the value for the selected ordinal identifier.
7
Object Identification Configuration
tools Object Identification
Add-in Environments
Available Test Object
Classes
Preconfigured
mandatory and
assistive properties
Configuring Smart
identification
Ordinal Identifiers
8
New Terms
Mandatory Properties
Mandatory to record all the properties
Assistive Properties
Optional. QTP will use when mandatory properties not created unique
description
Index / Location/ creation time
Ordinal Identifiers.
Base Filter Properties
Very basic properties to create an object list for smart identification
Optional filter properties
Useful to filter the object list created by base filter properties to identify
unique object.
9
Smart Identification
Its an advanced Object Identification mechanism
Invokes when normal Identification fails to identify object.
Base Filter Properties
Optional Filter
Properties
10
Normal vs Smart identifications
Normal Identification

Uses only recorded
description to identify an
object
Should satisfy all recorded
property values
Fails even one property is
not matched with original
property value
Smart Identification

Uses recorded configuration
settings in Object
identification window
No need to satisfy all
configured property values
If one property value fails SI
will use another property to
identify object
11
Mapping custom class to standard class
QuickTest gets information about object from OS. Ex. Class
What If that class is not available in test object classes list?
The solution is mapping custom class to standard class.
The Object Mapping dialog box enables you to map an object of an unidentified
or custom class to a Standard Windows class.
By default an unidentified or custom class will be recorded by QTP as winobject.
This mapping facility is available for only standard windows environment
12
Object Spy
Using the Object Spy, you can view the run-time or test object
properties and methods of any object in an open application. You
use the Object Spy pointer to point to an object. The Object Spy
dialog box displays the selected object's hierarchy tree. It displays
the run-time or test object properties and values of the selected
object in the Properties tab. It displays the run-time or test object
methods associated with the selected object in the Methods tab.

New Terms
Test Object
Runtime Object
Test Object Properties / Methods
Runtime Object Properties / Methods
13
Object Spy Dialog Box
Tools ObjectSpy
14
Difference between RO & TO Properties
Test Object properties are QTP identified properties
Runtime Object properties are the properties assigned by
application provider
15
The Five Concepts in any Automation Tool
1. Recording / Running
2. Object Identification
3. Verifications
4. Data Driving
5. Exception Handling
16
17
18
SemanticSpace Technologies
100 Pacifica Suite 270,
Irvine CA 92618,
Tel: (949) 789-7332
Fax: (949) 789-7334
www.semanticspace.com
Prolifics
22 Cortlandt Street, 18th Floor,
New York, NY 10007
Tel: (212) 267-7722
Fax: (212) 608-6753
www.prolifics.com
Arsin Corporation
Suite 425, 4800 Great America Parkway,
Santa Clara, CA 95054 -1228
Tel: (408) 653-2020
Fax: (408) 653-2030
www.arsin.com
Corporate Headquarters
European Offices
London, UK Hamburg, Germany
Philadelphia, PA San Francisco, CA Irving, TX Atlanta, GA Orlando, FL Cleveland, OH
US Offices
Boston, MA
India Office
Plot #226, Road #17
Jubilee Hills, Hyderabad-500033
Phone: +91 40 39991999
Fax: +91 40 23114651

Das könnte Ihnen auch gefallen