diff --git "a/air_case/b2_herp3_bs/r_e5\347\224\250\346\210\267\347\256\241\347\220\206_\350\247\222\350\211\262\347\256\241\347\220\206_\347\274\226\350\276\221\350\247\222\350\211\262\345\220\215\347\247\260.air/r_e5\347\224\250\346\210\267\347\256\241\347\220\206_\350\247\222\350\211\262\347\256\241\347\220\206_\347\274\226\350\276\221\350\247\222\350\211\262\345\220\215\347\247\260.py" "b/air_case/b2_herp3_bs/r_e5\347\224\250\346\210\267\347\256\241\347\220\206_\350\247\222\350\211\262\347\256\241\347\220\206_\347\274\226\350\276\221\350\247\222\350\211\262\345\220\215\347\247\260.air/r_e5\347\224\250\346\210\267\347\256\241\347\220\206_\350\247\222\350\211\262\347\256\241\347\220\206_\347\274\226\350\276\221\350\247\222\350\211\262\345\220\215\347\247\260.py" index 1d2e0e69c96f81870baf6fec98233ed7d51fd3b3..f069810cecb890dbdd76b7fba624899ad7054e0b 100644 --- "a/air_case/b2_herp3_bs/r_e5\347\224\250\346\210\267\347\256\241\347\220\206_\350\247\222\350\211\262\347\256\241\347\220\206_\347\274\226\350\276\221\350\247\222\350\211\262\345\220\215\347\247\260.air/r_e5\347\224\250\346\210\267\347\256\241\347\220\206_\350\247\222\350\211\262\347\256\241\347\220\206_\347\274\226\350\276\221\350\247\222\350\211\262\345\220\215\347\247\260.py" +++ "b/air_case/b2_herp3_bs/r_e5\347\224\250\346\210\267\347\256\241\347\220\206_\350\247\222\350\211\262\347\256\241\347\220\206_\347\274\226\350\276\221\350\247\222\350\211\262\345\220\215\347\247\260.air/r_e5\347\224\250\346\210\267\347\256\241\347\220\206_\350\247\222\350\211\262\347\256\241\347\220\206_\347\274\226\350\276\221\350\247\222\350\211\262\345\220\215\347\247\260.py" @@ -50,7 +50,7 @@ def test1(): print('request_body', request_body) # # # # 发送请求 result = commonFuc().http_post(url, request_body, headers) - print('resultccccccccccccccc', result) + print('resultaaaaaaaaaaaaaaaaaaa', result) # 断言 code = commonFuc().analysis_json('code', result) data = commonFuc().analysis_json('data', result) @@ -58,11 +58,11 @@ def test1(): if code == 0 and len(data) >= 1: for i in data: cname = commonFuc().analysis_json('cname', i) - if cname == '自动化测试': + if cname == '自动化测试'or cname=='自动化测试2': id1 = commonFuc().analysis_json('id', i) break commonFuc().check_text_exist(0, result) - print(id1) + print('id1',id1) #r_e5用户管理_角色管理_编辑角色名称 @@ -74,24 +74,17 @@ def test1(): commonFuc().get_business_data(module, "X-APP-CODE")) # # 请求体 request_body = commonFuc().get_business_data(module, 'payload63_4',id1) - # request_body=str(request_body) - new_request_body = request_body.replace("'", '"') - # new_request_body = new_request_body.replace("None", 'null') - # print(new_request_body) - import json - request_body_json = json.loads(new_request_body) - print('request_body_json',request_body_json) # print('request_body', request_body) # # # # # 发送请求 - result = commonFuc().http_post(url, request_body_json, headers) + result = commonFuc().http_post(url, request_body, headers) print('resultccccccccccccccc', result) # #断言 code = commonFuc().analysis_json('code', result) data = commonFuc().analysis_json('data', result) roleCode="" - if code == 0 and len(data) >= 1: + if code == 0 and data == 1: commonFuc().check_text_exist(0, result) diff --git a/report/summary.html b/report/summary.html index 6269accc25b310388074ab098914c30ff61836f6..0595baa00b3e8e7cd6c96d66d9e1ab65314316e9 100644 --- a/report/summary.html +++ b/report/summary.html @@ -55,9 +55,9 @@