●.●●●● 1:自动化功能测试对象识别(动态) ●●●● ●●● 。一个好助手—Object Spy ●通过Object Spy可以查看到所需要识别的对象的 所有属性值,挑选其中可以唯一识别该对象的一 个属性或多个属性,对该对象进行描述。 16 PDF文件使用"pdfFactory Pro”试用版本创建w.fineprint.cn
16 1 :自动化功能测试对象识别(动态) l 一个好助手——Object Spy l 通过Object Spy可以查看到所需要识别的对象的 所有属性值,挑选其中可以唯一识别该对象的一 个属性或多个属性,对该对象进行描述。 PDF 文件使用 "pdfFactory Pro" 试用版本创建 炣www.fineprint.cn
888 0●◆ ●●●● 1:自动化功能测试对象识别(动态) ●.●●● ●9●● 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" Window("窗口A").GetToProperties("text")返回的是用于识别"窗口A"的两个属 性和值的集合 17 PDF文件使用"pdfFactory Pro”试用版本创建w.fineprint.cn
17 1 :自动化功能测试对象识别(动态) l 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. l 举个例子: 假设在库中有一个对象"窗口A",用于识别该对象的属性有2个, 一个属性是"text",在库中记录的值是"QQQQ". 另一个属性是"name",记录的值是"MM" 在实际运行脚本时属性"text"的值是"PPPP"而不是"QQQQ" 那么: Window("窗口A").GetToProperty("text")返回的是:"QQQQ" Window("窗口A").GetRoProperty("text")返回的是:"PPPP" Window("窗口A").GetToProperties("text")返回的是用于识别"窗口A"的两个属 性和值的集合 PDF 文件使用 "pdfFactory Pro" 试用版本创建 炣www.fineprint.cn