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
5f88f860
Commit
5f88f860
authored
Apr 26, 2024
by
xiao-hesheng
Browse files
流程五脚本编写
parent
a5544ca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/public1/public1/public1.py
View file @
5f88f860
...
@@ -209,10 +209,10 @@ def get_stockId(name, type=1):
...
@@ -209,10 +209,10 @@ def get_stockId(name, type=1):
elif
type
==
3
:
elif
type
==
3
:
children
=
[]
children
=
[]
print
(
'data'
,
data
)
print
(
'data'
,
data
)
children
=
commonFuc
().
analysis_json
(
'children'
,
commonFuc
().
analysis_json
(
'children'
,
data
))
children
=
commonFuc
().
analysis_json
(
'children'
,
commonFuc
().
analysis_json
(
'children'
,
data
))
print
(
'children'
,
children
)
print
(
'children'
,
children
)
for
i
in
children
:
for
i
in
children
:
id3
=
i
[
'id'
]
id3
=
i
[
'id'
]
print
(
id3
)
print
(
id3
)
return
id3
return
id3
...
@@ -363,7 +363,7 @@ def set_dept_user(dept_id, deptName, type=1):
...
@@ -363,7 +363,7 @@ def set_dept_user(dept_id, deptName, type=1):
# r_d2库房管理_库区设置_人员管理_添加人员
# r_d2库房管理_库区设置_人员管理_添加人员
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"basic_stockUser_insert_url"
)
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"basic_stockUser_insert_url"
)
print
(
'url库房管理_库区设置_人员管理_添加人员'
,
url
)
print
(
'url库房管理_库区设置_人员管理_添加人员'
,
url
)
# 获取请求头信息
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
...
@@ -372,7 +372,7 @@ def set_dept_user(dept_id, deptName, type=1):
...
@@ -372,7 +372,7 @@ def set_dept_user(dept_id, deptName, type=1):
# # 请求体
# # 请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload62_9_1_1"
,
dept_id
,
deptName
,
get_hosid
(),
stockAreaId
,
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload62_9_1_1"
,
dept_id
,
deptName
,
get_hosid
(),
stockAreaId
,
username1
,
uxid1
,
username1
)
username1
,
uxid1
,
username1
)
print
(
'url库房管理_库区设置_人员管理_添加人员request_body'
,
request_body
)
print
(
'url库房管理_库区设置_人员管理_添加人员request_body'
,
request_body
)
request_body_json
=
get_process_list
(
request_body
)
request_body_json
=
get_process_list
(
request_body
)
# # # # 发送请求
# # # # 发送请求
...
...
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