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
83c3fb73
Commit
83c3fb73
authored
May 10, 2024
by
xiao-hesheng
Browse files
流程七脚本编写
parent
be01b5c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
View file @
83c3fb73
...
@@ -30,7 +30,11 @@ def test1():
...
@@ -30,7 +30,11 @@ def test1():
# 一键导入所有产品
# 一键导入所有产品
execute_command
(
"python runner_test.py tag id2263-48 debug sit"
)
execute_command
(
"python runner_test.py tag id2263-48 debug sit"
)
#导入同步过来的新产品,防止因同步时间差导致新建的产品没有导入过来
#导入同步过来的新产品,防止因同步时间差导致新建的产品没有导入过来
import_goods
()
for
i
in
range
(
1
,
6
):
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"产品审核信息"
,
'message%s'
%
i
)
hosGoodsId
=
info
[
'hosGoodsId'
]
import_goods
(
hosGoodsId
)
# r_b8库房管理_库区设置_同步库房信息
# r_b8库房管理_库区设置_同步库房信息
execute_command
(
"python runner_test.py tag id2263-221 debug sit"
)
execute_command
(
"python runner_test.py tag id2263-221 debug sit"
)
# 新增用户
# 新增用户
...
@@ -50,7 +54,7 @@ def test1():
...
@@ -50,7 +54,7 @@ def test1():
# 科室管理-科室人员查询 设置科室负责人
# 科室管理-科室人员查询 设置科室负责人
execute_command
(
"python runner_test.py tag id2263-219 debug sit"
)
execute_command
(
"python runner_test.py tag id2263-219 debug sit"
)
def
import_goods
():
def
import_goods
(
hosGoodsId
):
module
=
"b2_herp3_bs"
module
=
"b2_herp3_bs"
# 内网登录
# 内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
...
@@ -68,7 +72,7 @@ def import_goods():
...
@@ -68,7 +72,7 @@ def import_goods():
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# 获取院区id
# 获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
hosGoodsId
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
#
hosGoodsId = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"]
goodsId
=
hosGoodsId
.
replace
(
"h0347"
,
""
)
goodsId
=
hosGoodsId
.
replace
(
"h0347"
,
""
)
# #请求体
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload32_1"
,
get_hosid
(),
goodsId
,
branch_id
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload32_1"
,
get_hosid
(),
goodsId
,
branch_id
)
...
...
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