Commit d9e976f8 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

优化脚本

parent 9c869899
...@@ -26,6 +26,6 @@ def test1(): ...@@ -26,6 +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') commonFuc().check_text_exist_result_text('succeed','succeed')
except: except:
commonFuc().check_text_exist('error','error') commonFuc().check_text_exist_result_text('error','1')
...@@ -189,6 +189,6 @@ try: ...@@ -189,6 +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') commonFuc().check_text_exist_result_text('succeed','succeed')
except: except:
print('a_a2_流程二供货关系申请提交审批,出现异常,请检查') print('a_a2_流程二供货关系申请提交审批,出现异常,请检查')
\ No newline at end of file
...@@ -323,9 +323,9 @@ try: ...@@ -323,9 +323,9 @@ try:
add_goods4()#定向 "isSubprov": "1" add_goods4()#定向 "isSubprov": "1"
select1('message5') select1('message5')
apply() apply()
commonFuc().check_text_exist('1', '1') commonFuc().check_text_exist_result_text('succeed','succeed')
except: except:
print('新增产品信息出现异常,后续的脚本必然无法走通,需要检查程序或者脚本或者环境是否出现问题') print('新增产品信息出现异常,后续的脚本必然无法走通,需要检查程序或者脚本或者环境是否出现问题')
commonFuc().check_text_exist('产品新增失败', '产品新增成功') commonFuc().check_text_exist_result_text('产品新增失败', '产品新增成功')
else: else:
commonFuc().check_text_exist('产品新增成功','产品新增成功') commonFuc().check_text_exist_result_text('succeed','succeed')
\ No newline at end of file \ No newline at end of file
...@@ -204,5 +204,6 @@ try: ...@@ -204,5 +204,6 @@ try:
test2() test2()
dept_query_all() dept_query_all()
grants_user() grants_user()
commonFuc().check_text_exist_result_text('succeed', 'succeed')
except: except:
commonFuc().check_text_exist('1', '2') commonFuc().check_text_exist_result_text('succeed','error')
...@@ -495,4 +495,4 @@ try: ...@@ -495,4 +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') commonFuc().check_text_exist_result_text('succeed','succeed')
\ No newline at end of file \ No newline at end of file
...@@ -262,4 +262,5 @@ except Exception as e: ...@@ -262,4 +262,5 @@ except Exception as e:
print('订单配送发生错误,请检查脚本或者数据') print('订单配送发生错误,请检查脚本或者数据')
print("发生异常:", str(e)) print("发生异常:", str(e))
traceback.print_exc() traceback.print_exc()
commonFuc().check_text_exist('1', '1') else:
\ No newline at end of file commonFuc().check_text_exist_result_text('succeed','succeed')
\ No newline at end of file
...@@ -261,3 +261,5 @@ except Exception as e: ...@@ -261,3 +261,5 @@ except Exception as e:
print('请检查脚本或者数据') print('请检查脚本或者数据')
print("发生异常:", str(e)) print("发生异常:", str(e))
traceback.print_exc() traceback.print_exc()
else:
commonFuc().check_text_exist_result_text('succeed', 'succeed')
企业信息: 企业信息:
e_id: CR202404230091 e_id: CR202404230157
cname: 国药集团公司Ejly$ cname: 国药集团公司TRq#D
医院信息: 医院信息:
h_id: 湖南省人民医院2eFTZ h_id: 湖南省人民医院hygU*
h_name: 湖南省人民医院2eFTZ h_name: 湖南省人民医院hygU*
...@@ -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'>1分58</td> <td class='details-col-elapsed'>0分22</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/a_a6流程五_中心库入库结算_正结算2_外网配送/log.html' target='_blank'>a_a6流程五_中心库入库结算_正结算2_外网配送</a></td> <td class="details-col-elapsed"><a href='../log/a_a1_流程一外网企业注册审批/log.html' target='_blank'>a_a1_流程一外网企业注册审批</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">118.158</td> <td class="details-col-elapsed">22.277</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
......
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