- 博客(5)
- 收藏
- 关注
原创 post_method() missing 1 required positional argument: ‘data‘
原代码:1、首先自定义封装了接口请求类class InterFaceKey: #POST请求 def post_method(self,url,data,**kwargs): return requests.post(url=url,data=data,**kwargs) #GET请求 def get_method(self,url,data=None,**kwargs): return requests.get(url=url,p
2022-03-27 10:50:47
1446
原创 Max retries exceeded with url超过rul最大重试次数
问题:在python下,基于POM+unittest+yaml模式下的webUi自动化时,一条案例对应多条测试数据,运行时报:Max retries exceeded with url原码:yaml中的数据:- name: lakehouse pwd: 123456- name: lakehouse1 pwd: 123456测试用例:@ddtclass Login_Case1(unittest.TestCase): #只想实例化一次浏览器 @cla
2022-03-20 11:11:09
2090
原创 RuntimeError: dictionary changed size during iteration
dict_value={'attr_name': None, 'attr_value': None, 'txt': '测试测试'}#删除单个键值# del dict_value['attr_name']list_value=[]for key in dict_value.keys(): print('key',key,type(key)) if dict_value[key] is None: del dict_value[key]运行结果报错:Traceb.
2022-03-11 15:20:19
496
原创 AttributeError: ‘str‘ object has no attribute ‘open_url‘
AttributeError: 'str' object has no attribute 'open_url'
2022-03-01 15:36:58
1172
原创 AttributeError WriteOnlyWorksheet object has no attribute cell
AttributeError WriteOnlyWorksheet object has no attribute cell
2022-02-28 11:09:55
4022
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人