Professional Documents
Culture Documents
QTP Descriptive Programming 11200
QTP Descriptive Programming 11200
www.AdvancedQTP.com
What is DP?
DP stands for
Descriptive Programming
Many reasons
You have to
Functions & Recovery scenarios work
with different actions
Different actions = Different ORs
Cant be sure
You have to
Cant record certain objects
Auto-hide panels
Objects with changing hierarchies
Nested inner-objects, Sub menus
Simplicity
Why kill a fly with an atom bomb?
No need to use the OR for every one-time click button
in the application
And,
You can do VERY cool things with DP
OK, bring it on
How do I
1
Throw the properties and values
straight into a command
No problem:
VBWindow(height:=400, title:=New Document).Maximize
No problem:
VBWindow(title:=.*Document.*).Maximize
ID strings are automatically interpreted as regular
expressions
2
Throw the properties & values into a
description object, and throw IT into
the command
All is well
Getting objects
collections
This feature is so cool, deserves a title on its own
Sure