Commit 23e96e48 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

新增角色管理脚本

parent 5a50004e
......@@ -61,21 +61,15 @@ def test1():
result = commonFuc().http_post(url, request_body_json, headers)
print('resultccccccccccccccc', result)
# #断言
# code = commonFuc().analysis_json('code', result)
# data = commonFuc().analysis_json('data', result)
# roleCode=""
# if code == 0 and len(data) >= 1:
# for i in data:
# cname=commonFuc().analysis_json('cname', i)
# if cname=='自动化测试':
# code1=commonFuc().analysis_json('code', i)
# roleCode=code1
# break
# commonFuc().check_text_exist(0, result)
# print(roleCode)
# return roleCode
# else:
# commonFuc().check_text_exist('error', result)
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
roleCode=""
if code == 0 and len(data) >= 1:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
test1()
Supports Markdown
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