Merge remote-tracking branch 'origin/master'

This commit is contained in:
NINAN240778 2021-08-12 23:32:22 +08:00
commit f2554e5cf0
1 changed files with 33 additions and 0 deletions

33
README.md Normal file
View File

@ -0,0 +1,33 @@
# robotframework+python测试框架样例
#### 介绍
robotframework + python的web接口业务测试框架
#### 软件架构
软件架构说明
框架目录3个
libpython编写底层api接口
top环境配置文件
robot robot脚本文件
#### 环境安装
python3
(robot版本不一样有略微差别)
pip3 install robotframework==3.0.4
pip3 install robotframework-ride
运行中需要什么库直接pip安装即可 如requests
#### 说明
框架思路适用于web段以及设备端的测试。
lib层里面封装的常用接口的apirobot负责调用api和自带关键字方法完成逻辑脚本编写。
#### 运行demo.robot
给出了个demo脚本robot\Ap_web\demo.robot
C:\python3\Scripts\robot.bat(上述装好robotframe后python路径下有的) -v top:test.txt(top文件) -i test_demo -d F:\mayun\robotframework\log\ -L Trace -P F:\mayun\robotframework\lib F:\mayun\robotframework\robot\Ap_web
-v 可跟变量文件
-i 脚本tag
-P lib路径
-d 生成log日志
可查看run的结果