python_RF(RobotFramework)框架搭建

本文指导如何安装Robot Framework及其扩展库(如selenium2library和databaselibrary),并演示如何使用RIDE启动自动化测试,重点在于搭建环境与基本操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

rf是一个基于python的通过关键字驱动测试的自动化框架

RF环境搭建:

1.安装 robotframework==3.1.2

命令:pip install robotframework==3.1.2 -i
https://pypi.tuna.tsinghua.edu.cn/simple --trusted-hostpypi.tuna.tsinghua.edu.cn
2. 安装 robotframework-ride
命令:pip install robotframework-ride -i
https://pypi.tuna.tsinghua.edu.cn/simple --trusted-hostpypi.tuna.tsinghua.edu.cn

3.安装 robotframework-selenium2library

pip install robotframework-selenium2library -i
https://pypi.tuna.tsinghua.edu.cn/simple --trusted-hostpypi.tuna.tsinghua.edu.cn

4.安装 databaselibrary

pip install robotframework-databaselibrary -i
https://pypi.tuna.tsinghua.edu.cn/simple --trusted-hostpypi.tuna.tsinghua.edu.cn
启动ride,正常情况下,在配置环境ride的时候就会在桌面创建一个ride机器人的快捷方式。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值