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

新增角色管理脚本

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