Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
23e96e48
Commit
23e96e48
authored
Feb 28, 2024
by
xiao-hesheng
Browse files
新增角色管理脚本
parent
5a50004e
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/r_e4用户管理_角色管理_保存角色菜单.air/r_e4用户管理_角色管理_保存角色菜单.py
View file @
23e96e48
...
@@ -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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment