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
cd7438d8
Commit
cd7438d8
authored
Jul 12, 2024
by
xiao-hesheng
Browse files
数据库验证流程十脚本编写
parent
90f54f9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b2流程九请领业务流_二级库向中心库.air/a_b2流程九请领业务流_二级库向中心库.py
View file @
cd7438d8
...
...
@@ -421,7 +421,7 @@ def goods_move3(): # 设置请领出库渠道为中心库
def
SERACH_goods_id
(
GoodsId
):
# 在请领出库渠道
边仓
中搜索产品
# 在请领出库渠道
直送
中搜索产品
module
=
'b5_spd3_core_business_flow'
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
...
...
@@ -440,7 +440,7 @@ def SERACH_goods_id(GoodsId):
dept1
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid1'
]
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId']
# GoodsId = hosGoodsId.replace(get_hosid(), '')
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload53_
2
"
,
GoodsId
,
get_hosid
(),
get_branch_id
(),
dept1
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload53_
3
"
,
GoodsId
,
get_hosid
(),
get_branch_id
(),
dept1
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
branchGoodsId
=
commonFuc
().
analysis_json
(
'id'
,
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
)))
...
...
data/b5_spd3_core_business_flow/data
View file @
cd7438d8
...
...
@@ -299,6 +299,7 @@ json_headers2: {
"payload53": {"queryObject":{"goodsName":"%s","goodsMfrsName":"","purModes":[],"hosId":"%s","branchId":"%s","goodsSpec":"","importGrantRule":2,"deptId":"%s"},"pageNum":1,"pageSize":50}
"payload53_2": {"queryObject":{"goodsName":"%s","goodsMfrsName":"","purModes":[],"hosId":"%s","branchId":"%s","grantRule":2,"goodsSpec":"","deptId":"%s"},"pageNum":1,"pageSize":50}
"payload53_3": {"queryObject":{"goodsName":"%s","goodsMfrsName":"","purModes":[],"hosId":"%s","branchId":"%s","grantRule":3,"goodsSpec":"","deptId":"%s"},"pageNum":1,"pageSize":50}
"payload54": {"logicInfo":{"logicName":"自动化测试12345","simpleName":"自动","stockId":"ST2023122800001","hosId":"%s","mgrMode":"0","purBranchId":"%s","leader":"自动化测试","phone":"自动化测试","tbStatus":1,"delFlag":0,"branchIds":["%s"],"createUser":"%s","lastModifiedUser":"%s"},"mgrRange":{"userId":"%s","corpId":"%s","mgrRangeName":"自动化测试12345","mgrRangeKind":2,"defaultFlag":1,"projectCode":"warehouse","createUser":"%s","lastModifiedUser":"%s","extStr1":"3.0实体仓"}}
"payload55": {"orderBy":"mdb.order_no asc","pageNum":1,"pageSize":50,"queryObject":{"permission":true,"deptId":"","orderNo":"","branchId":"%s","goodsName":"","startDate":"","endDate":"","queryFlag":true}}
...
...
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