AutoItLibrary安装以及使用(RF)
2016-11-10 15:39
337 查看
在用selenium2library做web测试的时候,上传、下载等弹出操作有时候是不能准确的定位到,这个时候autoitlibrary就可以完美的解决这个问题。
下面就简要讲下autoitlibrary的安装过程:
1、pywin32(autoitlibrary使用首先安装这个库)
下载地址:http://download.csdn.net/detail/huashao0602/9678946
2、autoitlibrary
安装需要管理员身份运行python setup.py install
下载地址:http://download.csdn.net/detail/huashao0602/9678950
3、autoitX3.dll
替换掉autoitlibrary下lib里的.dll文件,使其支持X64位windows系统
下载地址:http://download.csdn.net/detail/huashao0602/9678975
4、autoit-v3.exe
64位系统同时需要安装autoit-v3.exe
下载地址:http://download.csdn.net/detail/huashao0602/9678963
到这里安装告一段落了,可以在ride里导入AutoItLibrary库验证是否正常;
autoit v3的使用,这里是一个上传的例子。
打开下面两个工具:
windows info:定位窗口信息
scite script editor:编写脚本
如:拖动这个小风扇到这个上传窗口
此时我们的编写代码就是如下:
保存为.au3格式后,用工具转换成exe文件
然后在ride里用autoitlibrary里的run关键字实现上传功能
后续增加一下用autoitlibrary实现上传的方法
下面就简要讲下autoitlibrary的安装过程:
1、pywin32(autoitlibrary使用首先安装这个库)
下载地址:http://download.csdn.net/detail/huashao0602/9678946
2、autoitlibrary
安装需要管理员身份运行python setup.py install
下载地址:http://download.csdn.net/detail/huashao0602/9678950
3、autoitX3.dll
替换掉autoitlibrary下lib里的.dll文件,使其支持X64位windows系统
下载地址:http://download.csdn.net/detail/huashao0602/9678975
4、autoit-v3.exe
64位系统同时需要安装autoit-v3.exe
下载地址:http://download.csdn.net/detail/huashao0602/9678963
到这里安装告一段落了,可以在ride里导入AutoItLibrary库验证是否正常;
autoit v3的使用,这里是一个上传的例子。
打开下面两个工具:
windows info:定位窗口信息
scite script editor:编写脚本
如:拖动这个小风扇到这个上传窗口
此时我们的编写代码就是如下:
$path = @WorkingDir&"\GR\Gr.apk" ControlFocus("打开","","Edit1") WinWait("[CLASS:#32770]","",10) ControlSetText("打开","","Edit1",$path) sleep(2000) ControlClick("打开","","Button1")
保存为.au3格式后,用工具转换成exe文件
然后在ride里用autoitlibrary里的run关键字实现上传功能
后续增加一下用autoitlibrary实现上传的方法
相关文章推荐
- SSHLibrary安装以及使用(RF)
- AutoItLibrary安装问题解决
- AutoItLibrary安装报错(robotframework)解决
- AutoItLibrary安装和常见问题解决
- robotframework安装AutoItLibrary
- Ubuntu Linux 12.04 64位下Intel Math Kernel Library (MKL) 2013安装以及使用
- autotools 系列工具安装以及使用方法
- 安装64位AutoItLibrary
- AutoItLibrary的安装
- AutoItLibrary安装和常见问题解决
- 【笔记】【原】Ubuntu Linux 12.04 64位下Intel Math Kernel Library (MKL) 2013安装以及使用
- unix监控网卡流量小工具ifstat的安装以及使用
- Tips: 使用autotools生成动态.so库文件 / Generate .so library files using autotools in Solaris and Linux
- Grub安装、配置以及使用实例汇总讲解
- Visual C++的安装问题?以及Visual C++正确安装但是Visual assist安装后不能使用的问题
- eclipse3.5安装ve 以及ve的使用方法
- PHPDocumentor安装与使用以及一般问题的处理
- CSS的inherit与auto使用分析
- CSS的inherit与auto使用分析
- bochs安装以及使用