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
9c869899
Commit
9c869899
authored
Apr 23, 2024
by
xiao-hesheng
Browse files
优化脚本
parent
f283f827
Changes
8
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a1_流程一外网企业注册审批.air/a_a1_流程一外网企业注册审批.py
View file @
9c869899
...
@@ -26,5 +26,6 @@ def test1():
...
@@ -26,5 +26,6 @@ def test1():
execute_command
(
"python runner_test.py tag id2249 debug mdm3"
)
execute_command
(
"python runner_test.py tag id2249 debug mdm3"
)
try
:
try
:
test1
()
test1
()
commonFuc
().
check_text_exist
(
'1'
,
'1'
)
except
:
except
:
commonFuc
().
check_text_exist
(
'error'
,
'error'
)
commonFuc
().
check_text_exist
(
'error'
,
'error'
)
air_case/b5_spd3_core_business_flow/a_a2_流程二供货关系申请提交审批.air/a_a2_流程二供货关系申请提交审批.py
View file @
9c869899
...
@@ -189,5 +189,6 @@ try:
...
@@ -189,5 +189,6 @@ try:
#供应关系申请-客户类型厂商
#供应关系申请-客户类型厂商
FileUtils
().
w_info1
(
supply_and_marketing_apply2
(),
module
,
'供货关系申请2'
)
FileUtils
().
w_info1
(
supply_and_marketing_apply2
(),
module
,
'供货关系申请2'
)
submitSupplyRelation_pass
()
submitSupplyRelation_pass
()
commonFuc
().
check_text_exist
(
'1'
,
'1'
)
except
:
except
:
print
(
'a_a2_流程二供货关系申请提交审批,出现异常,请检查'
)
print
(
'a_a2_流程二供货关系申请提交审批,出现异常,请检查'
)
\ No newline at end of file
air_case/b5_spd3_core_business_flow/a_a3_流程三_产品导入和审批.air/a_a3_流程三_产品导入和审批.py
View file @
9c869899
...
@@ -323,6 +323,7 @@ try:
...
@@ -323,6 +323,7 @@ try:
add_goods4
()
#定向 "isSubprov": "1"
add_goods4
()
#定向 "isSubprov": "1"
select1
(
'message5'
)
select1
(
'message5'
)
apply
()
apply
()
commonFuc
().
check_text_exist
(
'1'
,
'1'
)
except
:
except
:
print
(
'新增产品信息出现异常,后续的脚本必然无法走通,需要检查程序或者脚本或者环境是否出现问题'
)
print
(
'新增产品信息出现异常,后续的脚本必然无法走通,需要检查程序或者脚本或者环境是否出现问题'
)
commonFuc
().
check_text_exist
(
'产品新增失败'
,
'产品新增成功'
)
commonFuc
().
check_text_exist
(
'产品新增失败'
,
'产品新增成功'
)
...
...
air_case/b5_spd3_core_business_flow/a_a5流程五_中心库入库结算_正结算1_提交采购计划.air/a_a5流程五_中心库入库结算_正结算1_提交采购计划.py
View file @
9c869899
...
@@ -495,3 +495,4 @@ try:
...
@@ -495,3 +495,4 @@ try:
except
Exception
as
e
:
except
Exception
as
e
:
print
(
'审批采购计划出现错误,请检查脚本或者数据'
)
print
(
'审批采购计划出现错误,请检查脚本或者数据'
)
print
(
"发生异常:"
,
str
(
e
))
print
(
"发生异常:"
,
str
(
e
))
commonFuc
().
check_text_exist
(
'1'
,
'1'
)
\ No newline at end of file
air_case/b5_spd3_core_business_flow/a_a6流程五_中心库入库结算_正结算2_外网配送.air/a_a6流程五_中心库入库结算_正结算2_外网配送.py
View file @
9c869899
...
@@ -262,3 +262,4 @@ except Exception as e:
...
@@ -262,3 +262,4 @@ except Exception as e:
print
(
'订单配送发生错误,请检查脚本或者数据'
)
print
(
'订单配送发生错误,请检查脚本或者数据'
)
print
(
"发生异常:"
,
str
(
e
))
print
(
"发生异常:"
,
str
(
e
))
traceback
.
print_exc
()
traceback
.
print_exc
()
commonFuc
().
check_text_exist
(
'1'
,
'1'
)
\ No newline at end of file
data/a2_mdm3_ea/message
View file @
9c869899
企业信息:
企业信息:
e_id: CR202404
170078
e_id: CR202404
230091
cname: 国药集团公司
6%C*D
cname: 国药集团公司
Ejly$
data/a3_mdm3_hs/message
View file @
9c869899
医院信息:
医院信息:
h_id: 湖南省人民医院
jxAis
h_id: 湖南省人民医院
2eFTZ
h_name: 湖南省人民医院
jxAis
h_name: 湖南省人民医院
2eFTZ
data/a5_mdm3_pdm/message2
View file @
9c869899
产品审核信息
:
产品审核信息
:
MSPid
:
MSP2404
170039
_1
MSPid
:
MSP2404
230024
_1
hosId
:
h0347
hosId
:
h0347
hosGoodsId
:
h03470000
2959
hosGoodsId
:
h03470000
3031
provGoodsid
:
provGood-99220
064
provGoodsid
:
provGood-99220
140
goodsAuditBillId
:
MSP2404
170039
goodsAuditBillId
:
MSP2404
230024
targetId
:
MSP2404
170039
_1
targetId
:
MSP2404
230024
_1
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