Commit 9c869899 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

优化脚本

parent f283f827
...@@ -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')
...@@ -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
...@@ -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('产品新增失败', '产品新增成功')
......
...@@ -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
...@@ -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
企业信息: 企业信息:
e_id: CR202404170078 e_id: CR202404230091
cname: 国药集团公司6%C*D cname: 国药集团公司Ejly$
医院信息: 医院信息:
h_id: 湖南省人民医院jxAis h_id: 湖南省人民医院2eFTZ
h_name: 湖南省人民医院jxAis h_name: 湖南省人民医院2eFTZ
产品审核信息: 产品审核信息:
MSPid: MSP2404170039_1 MSPid: MSP2404230024_1
hosId: h0347 hosId: h0347
hosGoodsId: h034700002959 hosGoodsId: h034700003031
provGoodsid: provGood-99220064 provGoodsid: provGood-99220140
goodsAuditBillId: MSP2404170039 goodsAuditBillId: MSP2404230024
targetId: MSP2404170039_1 targetId: MSP2404230024_1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment