UFT GetROProperty、SetTOProperty和 GetTOProperty方法

1、GetROProperty:获取被测对象运行时属性

如:window("Flight Reservation").WinEdit("Name:")

此时窗口值:

输出name 值  msgbox window("Flight Reservation").WinEdit("Name:").GetROProperty("text")

2、GetTOProperty:获取仓库对象某属性的值

如:对象库name.text 值与界面值

输出name 值  msgbox window("Flight Reservation").WinEdit("Name:").GetROProperty("text")

3、SetTOProperty:修改运行时被测对象属性的值

window("Flight Reservation").WinEdit("Name:").SetTOProperty "HZQ","HZQ"
msgbox window("Flight Reservation").WinEdit("Name:").GetTOProperty("HZQ")

 输出

 

posted on 2017-09-16 10:15  HZQ_HZA  阅读(1053)  评论(0编辑  收藏  举报

导航