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
41f942ee
Commit
41f942ee
authored
Mar 13, 2024
by
xiao-hesheng
Browse files
优化脚本
parent
90448f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/o7科室管理_科室产品分配_科室新增产品.air/o7科室管理_科室产品分配_科室新增产品.py
View file @
41f942ee
...
...
@@ -48,6 +48,8 @@ def test1():
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
branch_name
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_name"
]
name
=
branch_name
+
'中心库房'
# str = commonFuc().get_business_data(module, 'data3')
# list2 = list(str.split(","))
# print(list2)
...
...
@@ -56,13 +58,19 @@ def test1():
# date2=timeUtils().get_time_hms(2)
# for i in list2:
dept2_id
=
FileUtils
().
r_info
(
module
,
'科室信息'
)[
"dept2_id"
]
# #调用库区设置脚本新增库区
# pro_path = commonFuc().get_pro_path()
# sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\r_c3库房管理_库区设置_新增库区.air')
# using(pro_path + r'\\air_case\\b2_herp3_bs\\r_c3库房管理_库区设置_新增库区.air')
# from r_c3库房管理_库区设置_新增库区 import test1
# test1(dept2_id)
# dept2_id = FileUtils().r_info(module, '科室信息')["dept2_id"]
#查询库房id
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\r_b9库房管理_库区设置_库房查询_查询全部.air'
)
using
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\r_b9库房管理_库区设置_库房查询_查询全部.air'
)
from
r_b9库房管理_库区设置_库房查询_查询全部
import
test1
stockId
=
test1
(
name
)
#调用库区设置脚本新增库区
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\r_c3库房管理_库区设置_新增库区.air'
)
using
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\r_c3库房管理_库区设置_新增库区.air'
)
from
r_c3库房管理_库区设置_新增库区
import
test1
test1
(
stockId
)
# 请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload58_6"
,
dept2_id
)
request_body
=
'['
+
str
(
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