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

数据库验证流程十三脚本编写

parent 4e63a54a
......@@ -2379,8 +2379,7 @@ def check_mcms_hos_batch(type=1): # 检查批次表信息
print('error')
commonFuc().check_text_exist_result_text('error', 'succees')
try:
def main():
pro_path = commonFuc().get_pro_path2()
print('pro_path', pro_path)
sys.path.append(pro_path + r'/air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air')
......@@ -2454,7 +2453,7 @@ try:
check_hdi_distr(int(i))
time.sleep(20)
#到这里就是验收和中心库自动入库以及中心库出库
# 到这里就是验收和中心库自动入库以及中心库出库
check_accept_order(1) # 低值 验收和自动入库和出库
time.sleep(6)
check_mcms_check(1) # 调用函数检查验收单数据库写值
......@@ -2484,6 +2483,8 @@ try:
check_mcms_psi_dept_in(20)
check_mcms_psi_dept_in(66)
commonFuc().check_text_exist_result_text('succees', 'succees')
try:
main()
except Exception as e:
# 打印错误信息
print(f"发生错误: {e}")
......
验收单号:
CHECK_NO1: CHECKh03472024072900034
CHECK_NO2: CHECKh03472024072900034
CHECK_NO1: CHECKh03472024072900037
CHECK_NO2: CHECKh03472024072900037
......@@ -126,7 +126,7 @@ def main_text():
print('调用流程十一')
sys.path.append(pro_path + r'/air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air')
using(pro_path + r'//air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air')
# from a_b4流程十一请领业务流_二级库向直送_数据库验证 import main
from a_b4流程十一请领业务流_二级库向直送_数据库验证 import main
# print('流程11执行完毕','flow11执行完毕')
# sys.exit(0)
def flow12():
......
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