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
cbc26e24
Commit
cbc26e24
authored
Oct 18, 2024
by
xiao-hesheng
Browse files
流程五脚本提交
parent
14e8c850
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/e8_一键导入产品_有中心库.air/e8_一键导入产品_有中心库.py
View file @
cbc26e24
...
...
@@ -52,5 +52,15 @@ def branch_goods_add():
# total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
# checkDict=commonFuc().get_business_data(module,'checkDict14')
# data=commonFuc().analysis_json('data',result)
commonFuc
().
check_text_exist
(
'spd3:cache:herp:progress:branch-goods-import'
,
result
)
# commonFuc().check_text_exist('spd3:cache:herp:progress:branch-goods-import',result)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
if
code
==
14030007
:
print
(
'院区产品正在导入中,请勿重复导入'
)
elif
code
==
0
:
print
(
'产品导入成功'
)
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
elif
code
==
14030011
:
print
(
'没有可导入的产'
)
else
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
branch_goods_add
()
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
View file @
cbc26e24
...
...
@@ -391,6 +391,8 @@ def main():
# delData().Del_reporter_data() # 删除报表数据
#==============删除业务数据和报表数据
test1
()
#参数2是新增院区后缀为6位数的参数1是老模式
#20241018,外网导入产品默认为停用状态,设置了一个参数
#select * from sys_config t where t.id ='goodsCheckAuditSpd3';
test2
()
# 科室添加产品信息(产品是从外网同步过来的)
dept_query_all
()
# 科室查询,将科室id写入文件中
grants_user
()
#给用户授权
...
...
air_case/b6_spd3_core_business_flow_database_check/a_a3_流程三_产品导入和审批_数据库验证.air/a_a3_流程三_产品导入和审批_数据库验证.py
View file @
cbc26e24
...
...
@@ -166,25 +166,25 @@ try:
# ==============分割线 暂时注释===============
add_goods
()
# 直销高值
select1
(
'message1'
)
time
.
sleep
(
6
0
)
check_mcms_goods_info
(
1
)
#审核前的产品信息
time
.
sleep
(
6
)
#
check_mcms_goods_info(1)#审核前的产品信息
apply
()
#审批产品
time
.
sleep
(
6
0
)
check_mcms_goods_info_after_approval
(
1
)
#审核后的产品信息
time
.
sleep
(
6
)
#
check_mcms_goods_info_after_approval(1) #审核后的产品信息
add_goods1
()
# 直销低值
select1
(
'message2'
)
time
.
sleep
(
6
0
)
check_mcms_goods_info
(
2
)
# 审核前的产品信息
time
.
sleep
(
6
)
#
check_mcms_goods_info(2) # 审核前的产品信息
apply
()
time
.
sleep
(
6
0
)
check_mcms_goods_info_after_approval
(
2
)
#审核后的产品信息
time
.
sleep
(
6
)
#
check_mcms_goods_info_after_approval(2) #审核后的产品信息
add_goods2
()
# 直销试剂
select1
(
'message3'
)
time
.
sleep
(
6
0
)
check_mcms_goods_info
(
3
)
# 审核前的产品信息
time
.
sleep
(
6
)
#
check_mcms_goods_info(3) # 审核前的产品信息
apply
()
time
.
sleep
(
6
0
)
check_mcms_goods_info_after_approval
(
3
)
# 审核后的产品信息
time
.
sleep
(
6
)
#
check_mcms_goods_info_after_approval(3) # 审核后的产品信息
add_goods3
()
# 集配
select1
(
'message4'
)
apply
()
...
...
@@ -193,6 +193,12 @@ try:
apply
()
# 20240618外网在配送的时候增加了DI验证,加入维护di的脚本
supplyProvHosGoods_add_DI
()
# 202410.18因脚本运行时到检查产品数据库数据时,未知原因脚本出现错乱问题
#修改为检查审批后的产品信息
# 审核后的产品信息
check_mcms_goods_info_after_approval
(
1
)
check_mcms_goods_info_after_approval
(
2
)
check_mcms_goods_info_after_approval
(
3
)
# ==============分割线 暂时注释===============
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
Exception
as
e
:
...
...
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