自定义Class类注入测试对象
来源:互联网 发布:腹部减脂肪知乎 编辑:程序博客网 时间:2024/05/03 17:22
'***********************************************************'
'脚本名称:自定义Class类注入测试对象
'脚本功能:归类SwfTable对象常用基本方法
'编写日期:2014/01/10
'***********************************************************'
Class customSwfTable
Private oSwfTable,rowNum,columnNum
Public property set item(pObject)
Set oSwfTable=pObject
End Property
Public property let item(pObject)
Set item=oSwfTable
End Property
'取Text属性
Function GetText()
GetText=oSwfTable.GetROProperty("text")
End Function
'取hwnd属性
Function GetHWND()
GetHWND=oSwfTable.GetROProperty("hwnd")
End Function
'取visible属性
Function GetVisible()
GetVisible=oSwfTable.GetROProperty("visible")
End Function
'取height属性
Function GetHeight()
GetHeight=oSwfTable.GetROProperty("height")
End Function
'取width属性
Function GetWidth()
GetWidth=oSwfTable.GetROProperty("width")
End Function
'取focused属性
Function GetFocused()
GetFocused=oSwfTable.GetROProperty("focused")
End Function
'取abs_y属性
Function GetAbs_y()
GetAbs_y=oSwfTable.GetROProperty("abs_y")
End Function
'取abs_x属性
Function GetAbs_x()
GetAbs_x=oSwfTable.GetROProperty("abs_x")
End Function
'取x属性
Function GetX()
GetX=oSwfTable.GetROProperty("x")
End Function
'取y属性
Function GetY()
GetY=oSwfTable.GetROProperty("y")
End Function
'取FocusedRow
Function GetFocusedRow()
GetFocusedRow=oSwfTable.Object.FocusedView.FocusedRowHandle
End Function
'取RowCount
Function GetRowCount()
GetRowCount=oSwfTable.RowCount
End Function
'表示Menu
Function ShowMenu()
oSwfTable.Click 1,1,micRightBtn
End Function
'SelectRow
Function SelectRow(rowNum)
oSwfTable.SetView ""
oSwfTable.SelectCell rowNum,1
End Function
'表示指定Cell的Menu
Function ShowCellMenu(rowNum,columnNum)
oSwfTable.SetView ""
oSwfTable.SelectCell rowNum,1
WaitCursorDefault oSwfTable
Dim x,y
x=oSwfTable.GetCellProperty(rowNum,columnNum,"x")
y=oSwfTable.GetCellProperty(rowNum,columnNum,"y")
oSwfTable.Click x,y, micRightBtn
End Function
End Class
Function cSwfTable(pObject)
Set cSwfTable=nothing
Set cSwfTable=new customSwfTable
Set cSwfTable.item=pObject
End Function
RegisterUserFunc "SwfTable", "Extend", "cSwfTable", True
- 自定义Class类注入测试对象
- Class对象测试
- Java使用反射、自定义注解注入对象
- Spring自定义对象的注入配置
- 模拟spring依赖注入,自定义注入类
- [J2SE]测试集合删除自定义对象的类
- 对象与类class
- c++ 类、对象、class
- class类和对象
- ######【spring属性注入(Ioc的DI)总结】:注解方式属性注入,属性名任意.=for理解:Aop注入代理对象时,注入被增强类对象时,属性名为proxy(自定义)。
- Java中的Class类和Class对象
- java中的Class类与Class对象
- NET MVC+Spring.NET:二、注入自定义的对象
- 注入测试
- 测试类 (TEST.class.php)
- 对象(Object)和类(Class)
- java 中的Class类对象
- 类加载顺序 Class对象
- 开发 Linux 后台服务进程
- 80. 测试所需行为,而不是附带行为
- 英语学术论文常用经典句型
- android AsyncTask介绍
- iOS内存管理机制
- 自定义Class类注入测试对象
- AJAXCDR:利用 Flash 完美解决 JavaScript 和 AJAX 跨域 HTTP POST/GET 表单请求
- Java内存溢出的详细解决方案
- 线程间的通信
- 将jboss as 7 安装成windows服务
- Maven中的本地仓库的设置
- poj 3635 搜索+优先队列
- windows控制台下托盘
- 连接多种数据库