Commit 8c00112f authored by xiao-hesheng's avatar xiao-hesheng
Browse files

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

parent f57d58c9
......@@ -519,22 +519,39 @@ def check_mcms_mcms_pur_plan(type=16):
last_modified_user = create_user
if type == 16:
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_dept_buy_detail_approval_after', id2, PLAN_order_no, hos_id,
'mcms_pur_plan', id2, PLAN_order_no, hos_id,
get_branch_id(),dept_id1,dept_name1,rec_org_id,rec_org_name,area_code,area_name,source_id,rec_user,
rec_addr, bill_expdt_date, buyBillId, planBillId, buyOrderNo,
create_time, last_modified, last_modified_user)
elif type == 20:
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_dept_buy_detail_approval_after1', detail_id, id1, order_no1,
hos_goods_id,
mdm_goods_code, goods_code, pkg_def_id, pkg_def_name, create_user,
'mcms_pur_plan', id2, PLAN_order_no, hos_id,
get_branch_id(),dept_id1,dept_name1,rec_org_id,rec_org_name,area_code,area_name,source_id,rec_user,
rec_addr, bill_expdt_date, buyBillId, planBillId, buyOrderNo,
create_time, last_modified, last_modified_user)
else:
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'mcms_dept_buy_detail_approval_after2', detail_id, id1, order_no1,
hos_goods_id,
mdm_goods_code, goods_code, pkg_def_id, pkg_def_name, create_user,
'mcms_pur_plan', id2, PLAN_order_no, hos_id,
get_branch_id(),dept_id1,dept_name1,rec_org_id,rec_org_name,area_code,area_name,source_id,rec_user,
rec_addr, bill_expdt_date, buyBillId, planBillId, buyOrderNo,
create_time, last_modified, last_modified_user)
actual_value1 = get_process_list2(actual)
expected_value1 = get_process_list2(expected)
actual_value2 = actual_value1.replace(" ", "")
expected_value2 = expected_value1.replace(" ", "")
# print('actual_value2',actual_value2)
print('expected_value2')
print(expected_value2)
print('actual_value2')
print(actual_value2)
result = (compare_text_index(actual_value2, expected_value2))
print('result', result)
if actual_value2 == expected_value2:
print('ok')
commonFuc().check_text_exist_result_text('succees', 'succees')
else:
print('error')
commonFuc().check_text_exist_result_text('error', 'succees')
try:
# add_dept2() # 新增一个二级科室
# add_new_deptinfo() # 写入科室信息到文件中
......
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