File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ # api4excel - 接口自动化测试excel篇
1
2
2
- ###### 工作原理: 测试用例在excel上编辑,使用第三方库xlrd,读取表格sheet和内容,sheetName对应模块名,Jenkins集成服务发现服务moduleName查找对应表单,运用第三方库requests请求接口,根据结果和期望值进行断言,根据输出报告判断接口测试是否通过。
3
+ #### 工作原理: 测试用例在excel上编辑,使用第三方库xlrd,读取表格sheet和内容,sheetName对应模块名,Jenkins集成服务发现服务moduleName查找对应表单,运用第三方库requests请求接口,根据结果和期望值进行断言,根据输出报告判断接口测试是否通过。
3
4
4
5
###### 1. 数据准备
5
6
- 数据插入(容易实现的测试场景下所需外部数据)
16
17
- 报告反馈
17
18
- 暴露服务
18
19
19
- ## ` 写一个简单登录的接口自动化测试` ##
20
+ ** 写一个简单登录的接口自动化测试**
20
21
21
22
##### 代码的分层如下图:
22
23
@@ -340,4 +341,4 @@ logging.info("-------------- Get the result ------------ %s", res)
340
341
#### 七、查看测试报告(部署到jenkins会通过控制台查看) ####
341
342
342
343
343
- ![ 报告.png] ( http://upload-images.jianshu.io/upload_images/2955280-59a60c84bc40b3b5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240 )
344
+ ![ 报告.png] ( http://upload-images.jianshu.io/upload_images/2955280-59a60c84bc40b3b5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240 )
You can’t perform that action at this time.
0 commit comments