Commit 3f9fedc8 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程一脚本提交

parent aeac4207
...@@ -262,6 +262,94 @@ def check_sys_user_role(): ...@@ -262,6 +262,94 @@ def check_sys_user_role():
, contact_user, auditor, audit_time, create_user, create_time, , contact_user, auditor, audit_time, create_user, create_time,
last_modified_user, last_modified) last_modified_user, last_modified)
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')
def check_sys_user_org():
print('检查sys_user_org数据')
branch_id = get_branch_id()
sql1 = "select * from spd_ybtest_hdi.sys_user_org order by create_time desc limit 1;"
actual = check_mcms_pur_sql(sql1)
print('actual', actual)
id = get_id("select id from spd_ybtest_hdi.sys_user_org order by create_time desc limit 1;")
hos_id = get_id("select hos_id from spd_ybtest_hdi.sys_user_org where id='%s';" % id)
prov_id = get_prov_id()
sub_prov_id = get_id("select sub_prov_id from spd_ybtest_hdi.sys_user_org where id='%s';" % id)
contact_way = get_id("select contact_way from spd_ybtest_hdi.sys_user_org where id='%s';" % id)
contact_user = get_id("select contact_user from spd_ybtest_hdi.sys_user_org where id='%s';" % id)
create_time = get_create_time("select create_time from spd_ybtest_hdi.sys_user_org where id='%s';" % id)
# last_modified = get_create_time("select last_modified from spd_ybtest_hdi.supply_relation where id='%s';" % id)
# username = commonFuc().get_business_data('b2_herp3_bs', "username")
auditor = get_id("select auditor from spd_ybtest_hdi.sys_user_org where id='%s';" % id)
create_user = get_login_user_uxid_bydb(
FileUtils().r_info8('b5_spd3_core_business_flow', '供货关系申请2', 'message')["e_username"])
last_modified_user = get_id("select id from spd_ybtest_hdi.sys_user_org where user_code='test_1';")
audit_time = get_create_time("select audit_time from spd_ybtest_hdi.sys_user_org where id='%s';" % id)
last_modified = get_create_time("select last_modified from spd_ybtest_hdi.company_regist_bill where id='%s';" % id)
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'sys_user_org2', id, hos_id, prov_id, sub_prov_id, contact_way
, contact_user, auditor, audit_time, create_user, create_time,
last_modified_user, last_modified)
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')
def check_sys_user_login():
print('检查sys_user_login数据')
branch_id = get_branch_id()
sql1 = "select * from spd_ybtest_hdi.sys_user_login order by create_time desc limit 1;"
actual = check_mcms_pur_sql(sql1)
print('actual', actual)
id = get_id("select id from spd_ybtest_hdi.sys_user_login order by create_time desc limit 1;")
hos_id = get_id("select hos_id from spd_ybtest_hdi.sys_user_login where id='%s';" % id)
prov_id = get_prov_id()
sub_prov_id = get_id("select sub_prov_id from spd_ybtest_hdi.sys_user_login where id='%s';" % id)
contact_way = get_id("select contact_way from spd_ybtest_hdi.sys_user_login where id='%s';" % id)
contact_user = get_id("select contact_user from spd_ybtest_hdi.sys_user_login where id='%s';" % id)
create_time = get_create_time("select create_time from spd_ybtest_hdi.sys_user_login where id='%s';" % id)
# last_modified = get_create_time("select last_modified from spd_ybtest_hdi.supply_relation where id='%s';" % id)
# username = commonFuc().get_business_data('b2_herp3_bs', "username")
auditor = get_id("select auditor from spd_ybtest_hdi.sys_user_login where id='%s';" % id)
create_user = get_login_user_uxid_bydb(
FileUtils().r_info8('b5_spd3_core_business_flow', '供货关系申请2', 'message')["e_username"])
last_modified_user = get_id("select id from spd_ybtest_hdi.sys_user_login where user_code='test_1';")
audit_time = get_create_time("select audit_time from spd_ybtest_hdi.sys_user_login where id='%s';" % id)
last_modified = get_create_time("select last_modified from spd_ybtest_hdi.company_regist_bill where id='%s';" % id)
expected = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'sys_user_login2', id, hos_id, prov_id, sub_prov_id, contact_way
, contact_user, auditor, audit_time, create_user, create_time,
last_modified_user, last_modified)
actual_value1 = get_process_list2(actual) actual_value1 = get_process_list2(actual)
expected_value1 = get_process_list2(expected) expected_value1 = get_process_list2(expected)
actual_value2 = actual_value1.replace(" ", "") actual_value2 = actual_value1.replace(" ", "")
......
...@@ -75,9 +75,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间 ...@@ -75,9 +75,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
</tr> </tr>
<tr width="600"> <tr width="600">
<td class='details-col-elapsed'>5</td> <td class='details-col-elapsed'>8</td>
<td class='details-col-elapsed'>5</td> <td class='details-col-elapsed'>8</td>
<td class='details-col-elapsed'>0分4</td> <td class='details-col-elapsed'>0分3</td>
<td class="details-col-elapsed">100.0%</td> <td class="details-col-elapsed">100.0%</td>
</tr> </tr>
</table> </table>
...@@ -93,37 +93,58 @@ setInterval(updateTime, 1000); // 每秒更新一次时间 ...@@ -93,37 +93,58 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/医院注册_正常注册_私立医院/log.html' target='_blank'>医院注册_正常注册_私立医院</a></td> <td class="details-col-elapsed"><a href='../log/器械注册人_企业注册提交_正常注册_境内/log.html' target='_blank'>器械注册人_企业注册提交_正常注册_境内</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">0.354</td> <td class="details-col-elapsed">0.574</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/医院注册_注册时医院已存在/log.html' target='_blank'>医院注册_注册时医院已存在</a></td> <td class="details-col-elapsed"><a href='../log/外网企业注册-器械注册人-所有输入项填写/log.html' target='_blank'>外网企业注册-器械注册人-所有输入项填写</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">0.462</td> <td class="details-col-elapsed">0.475</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/医院注册正常注册公立医院/log.html' target='_blank'>医院注册正常注册公立医院</a></td> <td class="details-col-elapsed"><a href='../log/外网企业注册-器械注册人-有附件/log.html' target='_blank'>外网企业注册-器械注册人-有附件</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">0.343</td> <td class="details-col-elapsed">0.421</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/注册医院审核通过/log.html' target='_blank'>注册医院审核通过</a></td> <td class="details-col-elapsed"><a href='../log/外网企业注册-器械注册人/log.html' target='_blank'>外网企业注册-器械注册人</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">1.548</td> <td class="details-col-elapsed">0.399</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/注册医院审核驳回/log.html' target='_blank'>注册医院审核驳回</a></td> <td class="details-col-elapsed"><a href='../log/外网企业注册提交接口_正常注册/log.html' target='_blank'>外网企业注册提交接口_正常注册</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">1.132</td> <td class="details-col-elapsed">0.379</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/外网企业注册提交接口_注册企业已存在/log.html' target='_blank'>外网企业注册提交接口_注册企业已存在</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.488</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/生产厂商_企业注册提交_正常注册/log.html' target='_blank'>生产厂商_企业注册提交_正常注册</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.464</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/经销商_企业注册提交_正常注册/log.html' target='_blank'>经销商_企业注册提交_正常注册</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.401</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