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
6881751e
Commit
6881751e
authored
Jul 08, 2024
by
xiao-hesheng
Browse files
脚本优化
parent
18efab2a
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b3流程十请领业务流_二级库向边仓_数据库验证.air/a_b3流程十请领业务流_二级库向边仓_数据库验证.py
View file @
6881751e
...
...
@@ -64,11 +64,20 @@ def check_mcms_dept_buy(type=1):
# print('actual_value2')
# print( actual_value2)
# prov_hos_goods_id = '8d6273b7bca84dd8aace12b9422d7fd6'
expected_value2
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_dept_buy_car'
,
id
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
areaCode
,
areaName
,
hos_goods_id
,
mdm_goods_code
,
goodsCode
,
pur_mode
,
pkgDefId
,
pkgDefName
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
expected_value2
=
'expected_value2'
if
type
==
1
:
expected_value2
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_dept_buy_car_low_value'
,
id
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
areaCode
,
areaName
,
hos_goods_id
,
mdm_goods_code
,
goodsCode
,
pur_mode
,
pkgDefId
,
pkgDefName
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
2
:
expected_value2
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'check_mcms_dept_buy_car_high_value'
,
id
,
get_hosid
(),
branch_id
,
deptid2
,
deptname2
,
areaCode
,
areaName
,
hos_goods_id
,
mdm_goods_code
,
goodsCode
,
pur_mode
,
create_user
,
create_time
,
last_modified
,
last_modified_user
)
# print('expected_value2', expected_value2)
# expected_value2=get_process_list2(expected_value2)
actual_value2
=
actual_value2
.
replace
(
" "
,
""
)
...
...
data/b5_spd3_core_business_flow/message21
View file @
6881751e
二级库请领产品信息
:
list_a
:
-
&id001
-
hosGoodsId
:
h034700004
499
purMode
:
2
0
-
hosGoodsId
:
h034700004
500
purMode
:
1
0
grantRule
:
id
:
goodsName
:
高值牙钻机PFKHm
goodsName
:
一次性注射器_低值wExpg
goodsSpec
:
G-31891
mdmGoodsCode
:
'1166145
2
'
goodsCode
:
'00004
499
'
mdmGoodsCode
:
'1166145
3
'
goodsCode
:
'00004
500
'
unit
:
支
goodsMfrsName
:
德国歌德公司 Geuder AG
miDjmc
:
''
miCode
:
''
pkgDefName
:
pkgDefQty
:
1.0
pkgDefName
:
'100'
pkgDefQty
:
1
00
.0
pkgQty
:
qty
:
5.0
qty
:
5
00
.0
goodsImg
:
[]
pkgDefId
:
pkgDefId
:
34b26233759a4720920cc8328dd1f8d1
buyPkgQty
:
unitName
:
1
支
unitName
:
1
00支/100
price
:
99.9999
hosId
:
branchId
:
...
...
@@ -37,12 +37,12 @@
grantWay
:
2
deptGoodsStatus
:
codingType
:
0
purModeText
:
高
值耗材
goodsGeneralName
:
牙钻机
purModeText
:
低
值耗材
goodsGeneralName
:
一次性注射器
provName
:
国药集团公司^n1@F
noRecPkgQty
:
15.0
noRecQty
:
15.0
autoUnpack
:
noRecQty
:
15
00
.0
autoUnpack
:
0
consumeQty
:
consumePkgQty
:
list_b
:
...
...
data/b6_spd3_core_business_flow_database_check/data
View file @
6881751e
"check_mcms_dept_buy_car": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": %s, "pkg_def_id": "%s", "pkg_def_name": "%s", "pkg_def_qty": Decimal("100.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("100.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}'
\ No newline at end of file
"check_mcms_dept_buy_car_low_value": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": %s, "pkg_def_id": "%s", "pkg_def_name": "%s", "pkg_def_qty": Decimal("100.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("100.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}'
"check_mcms_dept_buy_car_high_value": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": %s, "pkg_def_id": null, "pkg_def_name": null, "pkg_def_qty": Decimal("1.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("1.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}'
\ No newline at end of file
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