“C:\Program Files\Python36\python.exe” E:/Autotest_inte**ce/common/request.py Traceback (most recent call last): File “E:/Autotest_inte**ce/common/request.py”, line 114, in <module> url_inte**ce=params_inte**ce[‘data’][‘url_inte**ce’] TypeError: list indices must be integers or slices, not str
作者勘误:源码compare.py中方法:__recur_params的第一个if条件替换成下面,否则会出现异常,导致结果为空。源码压缩包暂未修改,请注意! if isinstance(result_inte**ce, str) and result_inte**ce.startswith('{'):
书感觉不怎么样,例子不通用,API交互方面都没怎么讲。前面说循序渐进的教学方法不好,可后面只是贴出一大段代码然后讲个思路,也算是快餐书通病了,这方法对我这种习惯看循序渐进的教科书的人来说感觉不是很好。而且样例不清晰,结果显示没有把api请求的内容与数据库里呈现的数据进行对比,我看的是一头雾水。跟接口自动化测试这个主题关联性不强,我是个新手,没有我最想看到的如何把任何一个json、multipart/form-data等类型的content-type解析出来他们的请求体,并发送数据这个过程。可能也是因为我是个新手,所以可能看不到更深层的,比如设计层面的东西,故说出来的全是自己觉得书里不到位的地方,触犯众怒或者作者的话,我在此道歉了。
作者勘误:源码中提供的SQL有部分错误一直没更新,请从该地址下获取最新的sql语句文件,给你造成的困惑是否抱歉
https://pan.baidu.com/s/14cge4Mo6ygmk04XWXKVC5A
提取码:xctt
config_total SQL文件不能直接运行
运行request库
“C:\Program Files\Python36\python.exe” E:/Autotest_inte**ce/common/request.py
Traceback (most recent call last):
File “E:/Autotest_inte**ce/common/request.py”, line 114, in <module>
url_inte**ce=params_inte**ce[‘data’][‘url_inte**ce’]
TypeError: list indices must be integers or slices, not str
作者勘误:源码compare.py中方法:__recur_params的第一个if条件替换成下面,否则会出现异常,导致结果为空。源码压缩包暂未修改,请注意!
if isinstance(result_inte**ce, str) and result_inte**ce.startswith('{'):