Descriptive Programming in UFT – User friendly Tech help
Please refer the below video, it covers basics of DP, How to use DP, Practical Examples of DP, Types of DP , Limitations of DP.
n
nWhat is DP?
n
n
- n
- Descriptive programming
- Smart way of automation testing in UFT
n
n
n
n
n Where to Use?
n
n
- n
- Objects in application are dynamic
- OR size is increasing
- Don’t want to use OR
- OR is in read only mode
- Working with similar type of objects
n
n
n
n
n
n
n
nStatic DP?
n
n
- n
- Object information is send directly into the script
- “PropertyName” :=“Property Value” Pairs
- Browser(“creationTime:=0”).click
n
n
n
n
n
n Dynamic DP?
n
n
- n
- Description object to return a properties collection
- Set obj = description.create
- obj(“PN”).Value = “PV”
- Browser(obj).click
n
n
n
n
n
n
nUsage Constraint
n
- n
- When using DP from a specific point within a test object hierarchy, you must continue to use programmatic descriptions from that point onward within the same statement
n
n
Window(“Calculator”).WinButton(“Window Id:=2”).click (Correct)
n Window(“Window id:=123”).WinButton(“2”).click (Wrong)
n
- n
- Property objects added to a Properties collection are treated as regular expressions.
n
n
Meaning of DP in UFT
nExample1
nExample2
nExample3