1.内置库
robot framework内置库路径:%PATHON_PATH%Libsite-packages obotframework-3.0.2-py2.7.egg obotlibraries
RIDE读取内置库的路径:%PATHON_PATH%Libsite-packages obotidelib obotlibraries
一般应将robot framework下库文件拷贝到RIDE的库文件路径下,以保证RIDE读取的是最新的库文件
2.外置库
robot framework是基于python开发,外置库的安装同python库的安装:
通过pip安装(需知道库名,可以去https://pypi.org网站查),安装方便;
和源码安装 python setup.py install,需解决依赖关系
2.1SeleniumLibrary(web自动化测试)
最新版SeleniumLibrary3.1.1 已经兼容旧的SeleniumLibrary和Selenium2Library
下载地址:https://github.com/robotframework/SeleniumLibrary
安装成功后库存放路径:%PATHON_PATH%Libsite-packages obotframework_seleniumlibrary-3.1.1-py2.7.eggSeleniumLibrary
SeleniumLibrary依赖包:
decorator
selenium
robotframework
docutils
chromedriver下载地址:http://chromedriver.storage.googleapis.com/index.html
IEdriver下载地址:http://selenium-release.storage.googleapis.com/index.html
firefox驱动下载地址:https://github.com/mozilla/geckodriver/releases/
2.2AutoItLibrary(c/s自动化测试)
局限:只能识别标准的win32系统控件
pywin32下载地址:https://sourceforge.net/projects/pywin32/files/pywin32/
AutoItLibrary下载地址:https://github.com/qitaos/robotframework-autoitlibrary
AutoIt下载地址:https://www.autoitscript.com/site/autoit/downloads
安装完成库存放路径:%PYTHON_PATH%Libsite-packagesAutoItLibrary
2.3DatabaseLibrary(数据库测试)
下载地址:https://github.com/franz-see/robotframework-database-library
安装完成库存放路径:%PYTHON_PATH%Libsite-packages obotframework_databaselibrary-1.0.1-py2.7.eggDatabaseLibrary
2.4 AppiumLibrary(移动端自动化测试)
依次安装:Appium
Appium-Python-Client
robotframework-appiumlibrary
安装完成库存放路径:%PYTHON_PATH%Libsite-packagesAppiumLibrary
2.5 RIDE编辑器中导入到测试项目