Descriptive programming

Instead using objects are saved in the object repository, we are able to use descriptive programming to interact with the web objects. There are two other ways to do descriptive programming with QTP/UFT
  • Add property value directly to the object
ObjectType("property1Name:=property1Value","propertyName2:=propertyValue2")
Set anyPage = Browser("micclass:=Browser").Page("micclass:=Page")
  • Create a description object
    Set Variable_Name = Description.Create
    Variable_Name("property").value = "properties from APP"
    Variable_Name("property").value = "properties from APP"

Không có nhận xét nào:

Đăng nhận xét