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 
  • n

  •  Smart way of automation testing in UFT
  • n

n

n
Where to Use?
n

n

    n

  •  Objects in application are dynamic 
  • n

  •  OR size is increasing
  • n

  •  Don’t want to use OR
  • n

  •  OR is in read only mode 
  • n

  • Working with similar type of objects
  • n

n

n
nStatic DP?
n

n

    n

  • Object information is send directly into the script
  • n

  •  “PropertyName” :=“Property Value” Pairs
  • n

  •  Browser(“creationTime:=0”).click
  • n

n

n
Dynamic DP?
n

n

    n

  • Description object to return a properties collection 
  • n

  • Set obj = description.create 
  • n

  • obj(“PN”).Value = “PV” 
  • n

  • Browser(obj).click
  • 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

Was this article helpful?
YesNo

Similar Posts