qtp session day2
TRANSCRIPT
-
8/12/2019 QTP Session Day2
1/18
Confidential. Strictly for internal circulation only.1
-
8/12/2019 QTP Session Day2
2/18
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
-
8/12/2019 QTP Session Day2
3/18
Object Identification
This concept is tells about how QTP is identifies objects while running andrecording session.
During RuntimeStep1:-
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 objectthat stored in recording time.
During Record timeStep1:-
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.
-
8/12/2019 QTP Session Day2
4/18
Runtime Object Identification
Step1Look forLogical Name
Step2Search forSame Logical Name
Step3- ObjectProperties Step4- Original Object in
application
4
-
8/12/2019 QTP Session Day2
5/18
Object repository (OR)
Object Repository is the mindfor 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
-
8/12/2019 QTP Session Day2
6/18
Object Repository WindowResourcesObject Repository
Test Objects List
Object Properties
6
-
8/12/2019 QTP Session Day2
7/18
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
-
8/12/2019 QTP Session Day2
8/18
Object Identification Configurationtools Object Identification
Add-in Environments
Available Test ObjectClasses
Preconfiguredmandatory and
assistive properties
Configuring Smartidentification
Ordinal Identifiers
8
-
8/12/2019 QTP Session Day2
9/18
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
-
8/12/2019 QTP Session Day2
10/18
Smart Identification
Its an advanced Object Identification mechanism
Invokes when normal Identification fails to identify object.
Base Filter Properties Optional FilterProperties
10
-
8/12/2019 QTP Session Day2
11/18
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
-
8/12/2019 QTP Session Day2
12/18
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
-
8/12/2019 QTP Session Day2
13/18
Object Spy
Using the Object Spy, you can view the run-time or test objectproperties and methods of any object in an open application. Youuse the Object Spy pointer to point to an object. The Object Spydialog box displays the selected object's hierarchy tree. It displaysthe run-time or test object properties and values of the selectedobject 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
-
8/12/2019 QTP Session Day2
14/18
Object Spy Dialog BoxToolsObjectSpy
14
-
8/12/2019 QTP Session Day2
15/18
Difference between RO & TO Properties
Test Object properties are QTP identified properties
Runtime Object properties are the properties assigned by
application provider
15
-
8/12/2019 QTP Session Day2
16/18
The Five Concepts in any Automation Tool
1. Recording / Running
2. Object Identification
3. Verifications
4. Data Driving
5. Exception Handling
16
-
8/12/2019 QTP Session Day2
17/1817
-
8/12/2019 QTP Session Day2
18/1818
SemanticSpace Technologies
100 Pacifica Suite 270,
Irvine CA 92618,
Tel: (949) 789-7332
Fax: (949) 789-7334www.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, PASan 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