Académique Documents
Professionnel Documents
Culture Documents
www.AdvancedQTP.com
What is DP?
DP stands for
Descriptive Programming
But what IS DP?
…Can’t be sure
You have to
What the OR is
How does the OR work
I thought DP is all about
NOT using the OR…
Well, yes, but under the hood, DP &
the OR work the same way
=
How can I identify you?
Identification is done with
properties and values
Who are you?
=
Your height = 400
Your title = “NotePad”
You are visible (=True)
So, What IS the OR?
VBWindow(“title:=.*Document.*”).Maximize
oDesc(“Property1”).RegularExpression = False
Method 1 is faster, best used for one
or two commands, tops
When you want to execute multiple commands on an
object, method 2 is a better choice by far
VBWindow(“OR”).VBButton(“text:=OK”).Click
Or (when oDesc is a description object):
VBWindow(“OR”).VBButton(oDesc).Click
But, you can only start from OR, and move to DP
So this will not work:
VBWindow(“title:=notgood”).VBButton(“clickme”).Click
And that’s about it
You can use each of the methods (or combine them), and you’ll
be able to use objects that are not in the OR
You said I could do really
cool stuff with DP!
Right you are
Anything we want
Example for common uses