自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 1355

原创 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 2002

原创 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 482

原创 AttributeError: ‘str‘ object has no attribute ‘open_url‘

AttributeError: 'str' object has no attribute 'open_url'

2022-03-01 15:36:58 1122

原创 AttributeError WriteOnlyWorksheet object has no attribute cell

AttributeError WriteOnlyWorksheet object has no attribute cell

2022-02-28 11:09:55 3858 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除