1.RobotFramework的简介和特点
RF 是一个基于 Python 语言开发的,可扩展的,是以关键字驱动模式的自动化测试框架, RF 最新的版本是 2019 年7 月份发布, 7 月份之前只支持 python2.7 , 7 月之后支持 3.X 的版本
RobotFramework的特点
1 :编辑用例简单,可以以 robot,txt,tsv 或者 html 的格式编写用例
2 :自动生成 html 格式的测试报告和日志 (HtmlTestRunner.py,allure)
3: 除了自带的类库外,还有很多的实用的类库
4 :可以根据项目的需要自定义一些关键字
5 :可以使用 GUI 的方式运行,可以和 SVN 或者 GIT 及 Jenkins 持续集成
2.RF的环境安装
3.RF的使用
4.RF常用类库
pip install robotframework-seleniumlibrary==3.0.0
pip install robotframework-requests
pip install robotframework-appiumlibrary
在命令窗口中运行
安装seleniumlibrary出现的问题
Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
解决方案:
删除之后重新安装pip:
python -m pip install --upgrade pip
然后在安装seleniumlibrary就好了
5.ride界面功能描述
6.关键字的操作