Commit f8e5fa1f by taoke

1. excel 的header为空,或不是非json字符串,header为None

parents d98d0486 0d943153
......@@ -35,6 +35,7 @@ def get_excelData(workBook,sheetName,caseName):
dict0['headers'] = json.loads(dict0['headers'])
except:
print('header无')
dict0['headers']=None
lis.append(dict0)
idx += 1
return lis
......
......@@ -27,11 +27,13 @@ class TestLogin():
expectData = inData['expectData']
headers = inData['headers']
"""处理"""
headers['Authorization'] = BmyConfig.bmy_token
# """处理"""
# headers['Authorization'] = BmyConfig.bmy_token
"""请求"""
res = request_main(url, headers, method, req_data)
print("我打印一下headers",headers)
"""断言"""
assert res['code'] == expectData['code']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment