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
c10cfc26
Commit
c10cfc26
authored
Apr 17, 2024
by
xiao-hesheng
Browse files
优化脚本
parent
b79f1d55
Changes
7
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a1_流程一外网企业注册审批.air/a_a1_流程一外网企业注册审批.py
View file @
c10cfc26
...
@@ -7,7 +7,7 @@ from common.timeUtils import timeUtils
...
@@ -7,7 +7,7 @@ from common.timeUtils import timeUtils
__author__
=
"xiaohesheng"
__author__
=
"xiaohesheng"
"""
"""
case_tag:api,mdm_core,a_a1_流程一外网企业注册审批,2302,2302-1,sit,on
case_tag:api,mdm_core,a_a1_流程一外网企业注册审批,
id
2302,2302-1,sit,on
内网:a_a1_流程一外网企业注册审批
内网:a_a1_流程一外网企业注册审批
"""
"""
...
...
air_case/b5_spd3_core_business_flow/a_a2_流程二供货关系申请提交审批.air/a_a2_流程二供货关系申请提交审批.py
View file @
c10cfc26
...
@@ -4,7 +4,7 @@ from common.fileUtls import FileUtils
...
@@ -4,7 +4,7 @@ from common.fileUtls import FileUtils
__author__
=
"xiaohesheng"
__author__
=
"xiaohesheng"
"""
"""
case_tag:api,mdm_core,a_a2_流程二供货关系申请提交审批,2302,2302-2,sit,on
case_tag:api,mdm_core,a_a2_流程二供货关系申请提交审批,
id
2302,2302-2,sit,on
主数据平台:a_a2_流程二供货关系申请提交审批
主数据平台:a_a2_流程二供货关系申请提交审批
"""
"""
...
...
air_case/b5_spd3_core_business_flow/a_a3_流程三_产品导入和审批.air/a_a3_流程三_产品导入和审批.py
View file @
c10cfc26
...
@@ -4,7 +4,7 @@ from common.fileUtls import FileUtils
...
@@ -4,7 +4,7 @@ from common.fileUtls import FileUtils
__author__
=
"xiaohesheng"
__author__
=
"xiaohesheng"
"""
"""
case_tag:api,mdm-core,a_a3_流程三_产品导入和审批,2302,2302-3,sit,on
case_tag:api,mdm-core,a_a3_流程三_产品导入和审批,
id
2302,
id
2302-3,sit,on
主数据平台:a_a3_流程三_产品导入和审批
主数据平台:a_a3_流程三_产品导入和审批
"""
"""
...
@@ -62,6 +62,7 @@ def e_login(type=1):
...
@@ -62,6 +62,7 @@ def e_login(type=1):
else
:
else
:
return
token
,
projectCode
,
uxid
,
corpId
,
username
return
token
,
projectCode
,
uxid
,
corpId
,
username
# break
# break
#高值
def
add_goods
():
def
add_goods
():
token
,
projectCode
,
uxid
,
corpId
,
e_name
=
e_login
(
2
)
token
,
projectCode
,
uxid
,
corpId
,
e_name
=
e_login
(
2
)
...
@@ -172,7 +173,38 @@ def select1():
...
@@ -172,7 +173,38 @@ def select1():
FileUtils
().
w_info6
(
info
,
module
,
'产品审核信息'
,
titlename
,
'message2'
)
FileUtils
().
w_info6
(
info
,
module
,
'产品审核信息'
,
titlename
,
'message2'
)
else
:
else
:
commonFuc
().
check_text_exist
(
0
,
result
)
commonFuc
().
check_text_exist
(
0
,
result
)
def
add_goods1
():
#低值
token
,
projectCode
,
uxid
,
corpId
,
e_name
=
e_login
(
2
)
# 获取医院corpId
h_token
,
h_projectCode
,
h_uxid
,
h_corpId
,
h_name
=
h_login
()
module
=
"a5_mdm3_pdm"
module
=
"a5_mdm3_pdm"
# b18供货目录申请_客户类型_医院_提交供货申请单_添加产品
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"addGoodsHandleInfos_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
projectCode
)
goodsname
=
commonFuc
().
randomString
(
5
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload"
,
h_corpId
,
h_name
,
corpId
,
e_name
,
goodsname
,
e_name
)
# request_body = commonFuc().get_business_data(module, "payload10_1")
# print('request_body',request_body)
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
# 断言
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
if
code
==
0
:
commonFuc
().
check_text_exist
(
code
,
result
)
else
:
commonFuc
().
check_text_exist
(
-
1
,
result
)
add_goods
()
add_goods
()
select1
()
select1
()
apply
()
apply
()
\ No newline at end of file
# add_goods1()
# select1()
# apply()
\ No newline at end of file
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
View file @
c10cfc26
...
@@ -4,7 +4,7 @@ from common.fileUtls import FileUtils
...
@@ -4,7 +4,7 @@ from common.fileUtls import FileUtils
__author__
=
"xiaohesheng"
__author__
=
"xiaohesheng"
"""
"""
case_tag:api,mdm-core,a_a4_流程四_基础模块设置,2302,2302-4,sit,on
case_tag:api,mdm-core,a_a4_流程四_基础模块设置,
id
2302,2302-4,sit,on
主数据平台:a_a3_流程三_产品导入和审批
主数据平台:a_a3_流程三_产品导入和审批
"""
"""
...
...
data/a5_mdm3_pdm/data
View file @
c10cfc26
...
@@ -145,7 +145,7 @@ json_headers2: {
...
@@ -145,7 +145,7 @@ json_headers2: {
"ext2": "",
"ext2": "",
"cla": "",
"cla": "",
"errorDesc": "",
"errorDesc": "",
"generalName": "
一次性注射器
",
"generalName": "
牙钻机
",
"hosGoodsErpCode": "",
"hosGoodsErpCode": "",
"provName": "%s",
"provName": "%s",
"provId": "p1df18",
"provId": "p1df18",
...
@@ -228,7 +228,7 @@ json_headers2: {
...
@@ -228,7 +228,7 @@ json_headers2: {
"ext2": "",
"ext2": "",
"cla": "",
"cla": "",
"errorDesc": "",
"errorDesc": "",
"generalName": "
一次性注射器
",
"generalName": "
检测试剂
",
"hosGoodsErpCode": "",
"hosGoodsErpCode": "",
"provName": "%s",
"provName": "%s",
"provId": "p1df18",
"provId": "p1df18",
...
...
data/a5_mdm3_pdm/message2
View file @
c10cfc26
产品审核信息
:
产品审核信息
:
MSPid
:
MSP24041
2
0015_1
MSPid
:
MSP24041
7
0015_1
hosId
:
h0347
hosId
:
h0347
hosGoodsId
:
h034700002
85
8
hosGoodsId
:
h034700002
93
8
provGoodsid
:
provGood-992
19946
provGoodsid
:
provGood-992
20043
goodsAuditBillId
:
MSP24041
2
0015
goodsAuditBillId
:
MSP24041
7
0015
targetId
:
MSP24041
2
0015_1
targetId
:
MSP24041
7
0015_1
report/summary.html
View file @
c10cfc26
...
@@ -55,9 +55,9 @@
...
@@ -55,9 +55,9 @@
<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'
>
0
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分
4
秒
</td>
<td
class=
'details-col-elapsed'
>
0分
8
秒
</td>
<td
class=
"details-col-elapsed"
>
0.0%
</td>
<td
class=
"details-col-elapsed"
>
10
0.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/a_
b0_手工采购计划_低值产品_提交
/log.html'
target=
'_blank'
>
a_
b0_手工采购计划_低值产品_提交
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_
a3_流程三_产品导入和审批
/log.html'
target=
'_blank'
>
a_
a3_流程三_产品导入和审批
</a></td>
<td
class=
"
fail"
>
失败
</td>
<td
class=
"
success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
4.369
</td>
<td
class=
"details-col-elapsed"
>
8.813
</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