QTP基础到深入(包含VBscript讲解.pptVIP

  • 2
  • 0
  • 约7.59千字
  • 约 74页
  • 2019-08-10 发布于湖北
  • 举报
QTP常用函数-常用函数 GetToProperty() 、GetToProperties() 、GetRoproperty()、 SetToProperty() GetToProperty:Returns the value of the specified property from the test object description. GetTOProperties:Returns the collection of properties and values used to identify the object. GetROProperty:Returns the current value of the test object property from the object in the application. 举个例子: 假设在库中有一个对象“窗口A”,用于识别该对象的属性有2个, 一个属性是“text”,在库中记录的值是“QQQQ”. 另一个属性是“name”,记录的值是“MM” 在实际运行脚本时属性“text”的值是“PPPP”而不是“QQQQ” 那么: Window(“窗口A”).GetToProperty(“text”)返回的是:“QQQQ” Window(“窗口A”).GetRoProperty(“text”)返回的是:“PPPP” W

文档评论(0)

1亿VIP精品文档

相关文档