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
7f525630
Commit
7f525630
authored
Dec 08, 2023
by
xiao-hesheng
Browse files
修改脚本适合融合环境
parent
0e356843
Changes
7
Hide whitespace changes
Inline
Side-by-side
air_case/a4_mdm3_cm/b14供货关系审核_客户类型_医院_供销关系申请提交.air/b14供货关系审核_客户类型_医院_供销关系申请提交.py
View file @
7f525630
...
@@ -30,7 +30,7 @@ def supply_and_marketing_apply():
...
@@ -30,7 +30,7 @@ def supply_and_marketing_apply():
输入:h_corpId,contactUser,contactWay
输入:h_corpId,contactUser,contactWay
输出:"rtn_msg": ok
输出:"rtn_msg": ok
"""
"""
# module = "mdm3_cm"
# module = "
a4_
mdm3_cm"
#b14供货关系审核_客户类型_医院_供销关系申请提交
#b14供货关系审核_客户类型_医院_供销关系申请提交
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"submitSupplyRelation_url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"submitSupplyRelation_url"
)
# 获取请求头信息
# 获取请求头信息
...
@@ -39,7 +39,7 @@ def supply_and_marketing_apply():
...
@@ -39,7 +39,7 @@ def supply_and_marketing_apply():
projectCode
)
projectCode
)
contactUser
=
commonFuc
().
randomString
(
5
)
contactUser
=
commonFuc
().
randomString
(
5
)
contactWay
=
contactUser
contactWay
=
contactUser
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload"
,
h_corpId
,
contactUser
,
contactWay
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload
_1
"
,
h_corpId
,
contactUser
,
contactWay
)
# 发送请求
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
print
(
'result'
,
result
)
...
@@ -50,5 +50,5 @@ def supply_and_marketing_apply():
...
@@ -50,5 +50,5 @@ def supply_and_marketing_apply():
e_corpId
=
corpId
e_corpId
=
corpId
e_username
=
username
e_username
=
username
return
e_corpId
,
h_corpId
,
e_username
,
h_name
return
e_corpId
,
h_corpId
,
e_username
,
h_name
supply_and_marketing_apply
()
#
supply_and_marketing_apply()
FileUtils
().
w_info1
(
supply_and_marketing_apply
(),
module
,
'供货关系申请'
)
FileUtils
().
w_info1
(
supply_and_marketing_apply
(),
module
,
'供货关系申请'
)
\ No newline at end of file
air_case/a4_mdm3_cm/c0供货关系申请_客户类型_厂商_供货关系申请提交.air/c0供货关系申请_客户类型_厂商_供货关系申请提交.py
View file @
7f525630
...
@@ -4,8 +4,8 @@ from common.fileUtls import FileUtils
...
@@ -4,8 +4,8 @@ from common.fileUtls import FileUtils
__author__
=
"xiaohesheng"
__author__
=
"xiaohesheng"
"""
"""
case_tag:api,mdm-web,
a3
供货关系申请_客户类型_
医院
_供
销
关系申请提交,id2255,id2255-
3
,sit,on
case_tag:api,mdm-web,
c0
供货关系申请_客户类型_
厂商
_供
货
关系申请提交,id2255,id2255-
20
,sit,on
主数据平台:
a3
供货关系申请_客户类型_
医院
_供
销
关系申请提交
主数据平台:
c0
供货关系申请_客户类型_
厂商
_供
货
关系申请提交
"""
"""
from
common.common_func
import
commonFuc
from
common.common_func
import
commonFuc
...
...
data/a2_mdm3_ea/message
View file @
7f525630
企业信息:
企业信息:
e_id: CR2023120
6
00
26
e_id: CR2023120
8
00
11
cname: 国药集团公司
*&Xer
cname: 国药集团公司
3zPqg
data/a3_mdm3_hs/message
View file @
7f525630
医院信息:
医院信息:
h_id: 湖南省人民医院
6)sJI
h_id: 湖南省人民医院
^RZEN
h_name: 湖南省人民医院
6)sJI
h_name: 湖南省人民医院
^RZEN
data/a4_mdm3_cm/data
View file @
7f525630
...
@@ -20,6 +20,12 @@ json_headers2: {
...
@@ -20,6 +20,12 @@ json_headers2: {
"token": "%s",
"token": "%s",
"X-APP-CODE":"%s"
"X-APP-CODE":"%s"
}
}
json_headers2_2: {
"Content-Type": "%s",
"token": "%s",
"X-APP-CODE":"%s",
"X-SESSION-ID":"%s"
}
"payload": {
"payload": {
"id": "",
"id": "",
"provName": "",
"provName": "",
...
@@ -32,6 +38,7 @@ json_headers2: {
...
@@ -32,6 +38,7 @@ json_headers2: {
"contactWay": "%s",
"contactWay": "%s",
"version": ""
"version": ""
}
}
"payload_1": {"id":"","subProvName":"","hosName":"","invitationCode":"","hosId":"%s","clientType":"1","provId":"","contactUser":"%s","contactWay":"%s","version":""}
"payload1": {
"payload1": {
"pageNum": 1,
"pageNum": 1,
...
...
data/a4_mdm3_cm/message
View file @
7f525630
供货关系申请:
供货关系申请:
e_corpId: p1df1
8
e_corpId: p1df
2
1
h_corpId: h27
7b
h_corpId: h27
80
e_username: 国药集团公司
*&Xer
e_username: 国药集团公司
3zPqg
h_name: 湖南省人民医院
6)sJI
h_name: 湖南省人民医院
^RZEN
report/summary.html
View file @
7f525630
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分
3
秒
</td>
<td
class=
'details-col-elapsed'
>
0分
5
秒
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
</tr>
</tr>
</table>
</table>
...
@@ -72,9 +72,9 @@
...
@@ -72,9 +72,9 @@
</tr>
</tr>
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/b1
9医院客户目录维护
/log.html'
target=
'_blank'
>
b1
9医院客户目录维护
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/b1
4供货关系审核_客户类型_医院_供销关系申请提交
/log.html'
target=
'_blank'
>
b1
4供货关系审核_客户类型_医院_供销关系申请提交
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
3.872
</td>
<td
class=
"details-col-elapsed"
>
4.986
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
</tr>
</tr>
...
...
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