一、64位PC上部署RobotFrameWork+Jenkins
1.1 安装Python 2.7(64位)版本
1.2 安装pip
安装命令: python get-pip.py
1.3 安装AutoItX-V3(AutoItLibrary库依赖于它)
1.4 安装robot framework
安装命令: pip install robotframework
1.5 安装wxPython(支撑Ride的运行库)
1.6 安装robotframework-ride(GUI界面管理)
安装命令: pip install robotframework-ride
1.7 安装selenium2library
安装命令: pip install robotframework-selenium2library
1.8 安装pyodbc
安装命令:pip install pyodbc
1.9 安装requests(支持RequestLibrary库)
安装命令:pip install requests
1.10 安装RequestsLibrary(http request库)
安装命令: pip install -U robotframework-requests
1.11 安装AutoItLibrary
安装命令:pip install AutoItLibrary
1.12 安装Openpyxl
安装命令:pip install openpyxl
1.13 安装Psutil
安装命令:pip install psutil
1.14安装JDK并配置环境变量
1.15 下载jenkins.war包
二、常用的三方库及其API
2.1 Selenium2Library(浏览器&页面元素操作)
2.1.1打开浏览器Open Browser
示例:Open Browserhttp://192.168.10.206/somoStorageChrome
2.1.2 跳转到指定RUL地址Go To
示例:Go To http://192.168.10.206/somoStorage
2.1.3 点击元素Click Element
示例: Click Element id= id=Main
Click Element xpath=//div[@id="divLoading"]/img
2.14 点击超链接Click Link
示例:Click Link添加
Click Link//a[contains(.,'添加')]
... ...
查看更多精彩内容,请点击下载:http://www.51testing.com/html/07/n-3649907.html
... ...
查看更多精彩内容,请点击下载:http://www.51testing.com/html/07/n-3649907.html
版权声明:51Testing软件测试网及相关内容提供者拥有51testing.com内容的全部版权,未经明确的书面许可,任何人或单位不得对本网站内容复制、转载或进行镜像,否则将追究法律责任。