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
14aa7a36
Commit
14aa7a36
authored
Aug 22, 2024
by
xiao-hesheng
Browse files
流程十七脚本提交
parent
4aae0274
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a2_流程二供货关系申请提交审批.air/a_a2_流程二供货关系申请提交审批.py
View file @
14aa7a36
...
...
@@ -144,22 +144,24 @@ def supply_and_marketing_apply():
h_token
,
h_projectCode
,
h_uxid
,
h_corpId
,
h_name
=
h_login
()
module
=
"a4_mdm3_cm"
# a3供货关系申请_客户类型_医院_供销关系申请提交
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"submitSupplyRelation_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
projectCode
)
contactUser
=
commonFuc
().
randomString
(
5
)
contactWay
=
contactUser
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload"
,
h_corpId
,
contactUser
,
contactWay
)
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
# #获取接口返回数据
#
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict"
)
commonFuc
().
check_result
(
check_dict
,
result
)
#2024.8.22在企业审核的时候供货关系就自动建立了,注释如下脚本
# # a3供货关系申请_客户类型_医院_供销关系申请提交
# url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "submitSupplyRelation_url")
# # 获取请求头信息
# headers = commonFuc().get_business_data(module, "json_headers2",
# commonFuc().get_business_data(module, "json_contentType"), token,
# projectCode)
# contactUser = commonFuc().randomString(5)
# contactWay = contactUser
# request_body = commonFuc().get_business_data(module, "payload", h_corpId, contactUser, contactWay)
# print('供销关系申请提交request_body',request_body)
# # 发送请求
# result = commonFuc().http_post(url, request_body, headers)
# print('result', result)
# # #获取接口返回数据
# #
# check_dict = commonFuc().get_business_data(module, "checkDict")
# commonFuc().check_result(check_dict, result)
e_corpId
=
corpId
e_username
=
username
return
e_corpId
,
h_corpId
,
e_username
,
h_name
...
...
air_case/b5_spd3_core_business_flow/a_b1流程八_高值跟台业务流程.air/a_b1流程八_高值跟台业务流程.py
View file @
14aa7a36
...
...
@@ -80,6 +80,11 @@ def operationApply(): # 高值跟台申请
print
(
'跟台手术申请提交request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'跟台手术申请提交result'
,
result
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
if
code
==
1004
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
print
(
'跟台手术申请提交失败,脚本退出'
)
sys
.
exit
(
0
)
# 跟台手术申请提交=================================================
...
...
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