Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f2554e5cf0
|
@ -0,0 +1,33 @@
|
||||||
|
# robotframework+python测试框架样例
|
||||||
|
|
||||||
|
#### 介绍
|
||||||
|
robotframework + python的web接口业务测试框架
|
||||||
|
|
||||||
|
#### 软件架构
|
||||||
|
软件架构说明
|
||||||
|
框架目录3个
|
||||||
|
lib:python编写底层api接口
|
||||||
|
top:环境配置文件
|
||||||
|
robot: robot脚本文件
|
||||||
|
|
||||||
|
#### 环境安装
|
||||||
|
python3
|
||||||
|
(robot版本不一样有略微差别)
|
||||||
|
pip3 install robotframework==3.0.4
|
||||||
|
pip3 install robotframework-ride
|
||||||
|
运行中需要什么库直接pip安装即可 如requests
|
||||||
|
|
||||||
|
#### 说明
|
||||||
|
框架思路适用于web段以及设备端的测试。
|
||||||
|
lib层里面封装的常用接口的api,robot负责调用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的结果
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue