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
49d77758
Commit
49d77758
authored
Sep 09, 2024
by
xiao-hesheng
Browse files
流程八脚本提交
parent
e9667d1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b1流程八_高值跟台业务流程_数据库验证.air/a_b1流程八_高值跟台业务流程_数据库验证.py
View file @
49d77758
...
@@ -4,7 +4,8 @@ import traceback
...
@@ -4,7 +4,8 @@ import traceback
from
air_case.b1_herp3_login.登录内网系统.登录内网系统
import
login_system
from
air_case.b1_herp3_login.登录内网系统.登录内网系统
import
login_system
from
air_case.public1.public1.public1
import
*
from
air_case.public1.public1.public1
import
*
from
common.db.sql.sql_tools
import
check_mcms_dept_buy_sql
,
get_login_user_uxid_bydb
,
get_create_time
from
common.db.sql.sql_tools
import
check_mcms_dept_buy_sql
,
get_login_user_uxid_bydb
,
get_create_time
,
get_goods_code1
,
\
get_goods_name
from
common.fileUtls
import
FileUtils
from
common.fileUtls
import
FileUtils
from
common.run_cmd_script
import
execute_command
from
common.run_cmd_script
import
execute_command
...
@@ -325,18 +326,21 @@ def check_mcms_operation_notice_list(pid,p_order_no):
...
@@ -325,18 +326,21 @@ def check_mcms_operation_notice_list(pid,p_order_no):
source_bill_detail_id
=
get_id
(
"select id from mcms_operation_apply_list order by create_time desc LIMIT 1;"
)
source_bill_detail_id
=
get_id
(
"select id from mcms_operation_apply_list order by create_time desc LIMIT 1;"
)
pkg_code
=
p_order_no
pkg_code
=
p_order_no
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message1'
)[
"hosGoodsId"
]
prov_id
=
get_prov_id
(
)
goodsCode
=
get_goods_code1
(
hos_goods_id
)
sub_prov_id
=
get_prov
_id
(
)
goodsName
=
get_goods_name
(
hos_goods
_id
)
sub_prov_id
=
get_prov_id
()
sub_prov_name
=
get_prov_name
()
create_user_name
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
]
create_user
=
get_login_user_uxid_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
])
create_user
=
get_login_user_uxid_bydb
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)[
'username1'
])
create_time
=
get_create_time
(
"select create_time from mcms_operation_
apply
_list where id='%s';"
%
ID
)
create_time
=
get_create_time
(
"select create_time from mcms_operation_
notice
_list where id='%s';"
%
ID
)
last_modified
=
get_create_time
(
"select last_modified from mcms_operation_
apply
_list where id='%s';"
%
ID
)
last_modified
=
get_create_time
(
"select last_modified from mcms_operation_
notice
_list where id='%s';"
%
ID
)
last_modified_user
=
create_user
last_modified_user
=
create_user
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_operation_notice_list'
,
ID
,
pid
,
hos_goods_id
,
prov_id
,
sub_prov_
id
,
'check_mcms_operation_notice_list'
,
ID
,
pid
,
source_bill_detail_id
,
pkg_code
,
hos_goods_id
,
sub_
prov_id
,
sub_prov_
name
,
create_user
,
create_time
,
last_modified
,
last_modified_user
goodsCode
,
goodsName
,
create_user
,
create_user_name
,
create_time
,
last_modified
,
last_modified_user
)
)
...
...
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