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

修改脚本适合融合环境

parent c9625c37
# -*- encoding=utf8 -*- # -*- encoding=utf8 -*-
from common.fileUtls import FileUtils
__author__ = "xiaohesheng" __author__ = "xiaohesheng"
...@@ -18,6 +19,7 @@ using(pro_path+r'\\air_case\\a2_mdm3_ea\\a企业认领.air') ...@@ -18,6 +19,7 @@ using(pro_path+r'\\air_case\\a2_mdm3_ea\\a企业认领.air')
from a企业认领 import * from a企业认领 import *
# print('global_var_id',global_var_id) # print('global_var_id',global_var_id)
id1=global_var_id id1=global_var_id
cname=global_var_cname
""" """
场景:注册企业审核 场景:注册企业审核
用例名称:企业审核 用例名称:企业审核
...@@ -47,4 +49,8 @@ check_dict1 = commonFuc().get_business_data(module, "checkDict1") ...@@ -47,4 +49,8 @@ check_dict1 = commonFuc().get_business_data(module, "checkDict1")
#断言实际结果中是否包含预期结果的内容 #断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict1, result) commonFuc().check_result(check_dict1, result)
#===============企业注册提交接口_审核通过_结束 #===============企业注册提交接口_审核通过_结束
#审核通过的企业名称
info=(id1,cname)
titlename=('e_id','cname')
#审核通过的企业名称写入文件中
FileUtils().w_info5(info,module,'企业信息',titlename)
...@@ -19,9 +19,9 @@ def e_login(): ...@@ -19,9 +19,9 @@ def e_login():
# using(pro_path+r'\\air_case\\mdm3_pim\\a8产品新增和审核通过.air') # using(pro_path+r'\\air_case\\mdm3_pim\\a8产品新增和审核通过.air')
# from a8产品新增和审核通过 import Enterprise_audit # from a8产品新增和审核通过 import Enterprise_audit
# username=Enterprise_audit() # username=Enterprise_audit()
info = FileUtils().r_info("a5_mdm3_pim", "产品新增") info = FileUtils().r_info("a2_mdm3_ea", "企业信息")
print(info) print(info)
username = info['username'] username = info['cname']
print('aaaaaaaaaaaaaaaaaaaaaaaaaaa',username) print('aaaaaaaaaaaaaaaaaaaaaaaaaaa',username)
""" """
场景:a2供货关系申请_客户类型_医院_登录_企业登录 场景:a2供货关系申请_客户类型_医院_登录_企业登录
......
...@@ -13,8 +13,8 @@ from air_case.mdm_login.登录外网系统.登录外网系统 import login_syste ...@@ -13,8 +13,8 @@ from air_case.mdm_login.登录外网系统.登录外网系统 import login_syste
def select_upply_and_marketing(): def select_upply_and_marketing():
module = "mdm3_cm" module = "a4_mdm3_cm"
info = FileUtils().r_info("mdm3_cm", "供货关系申请") info = FileUtils().r_info("a4_mdm3_cm", "供货关系申请")
print(info) print(info)
e_corpId = info['e_corpId'] e_corpId = info['e_corpId']
h_corpId = info['h_corpId'] h_corpId = info['h_corpId']
...@@ -40,7 +40,7 @@ def select_upply_and_marketing(): ...@@ -40,7 +40,7 @@ def select_upply_and_marketing():
request_body = commonFuc().get_business_data(module, "payload1",e_corpId) request_body = commonFuc().get_business_data(module, "payload1",e_corpId)
# # 发送请求 # # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
print('result',result) print('result,aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',result)
# # #获取接口返回数据 # # #获取接口返回数据
code=commonFuc().analysis_json('code',result) code=commonFuc().analysis_json('code',result)
pageSize = commonFuc().analysis_json('pageSize',commonFuc().analysis_json('data',result)) pageSize = commonFuc().analysis_json('pageSize',commonFuc().analysis_json('data',result))
......
...@@ -15,8 +15,8 @@ import sys ...@@ -15,8 +15,8 @@ import sys
def select_upply_and_marketing(): def select_upply_and_marketing():
module = "mdm3_cm" module = "a4_mdm3_cm"
info = FileUtils().r_info("mdm3_cm", "供货关系申请") info = FileUtils().r_info("a4_mdm3_cm", "供货关系申请")
print(info) print(info)
e_corpId = info['e_corpId'] e_corpId = info['e_corpId']
h_corpId = info['h_corpId'] h_corpId = info['h_corpId']
......
企业信息:
e_id: CR202312060026
cname: 国药集团公司*&Xer
...@@ -172,7 +172,7 @@ json_headers2: { ...@@ -172,7 +172,7 @@ json_headers2: {
"dataEntrance": "注册", "dataEntrance": "注册",
"importTaskMfrsId": null, "importTaskMfrsId": null,
"createUserCorpId": null, "createUserCorpId": null,
"hosSpdType": null, "hosSpdType": 3,
"companyRegistBizscopeVos": null, "companyRegistBizscopeVos": null,
"certVOList": null, "certVOList": null,
"upCompanyName": null, "upCompanyName": null,
......
医院信息: 医院信息:
h_id: 湖南省人民医院jtZBp h_id: 湖南省人民医院6)sJI
h_name: 湖南省人民医院jtZBp h_name: 湖南省人民医院6)sJI
"username": "test001" "username": "test001"
"password": "a123456!" "password": "a123456!"
"submitSupplyRelation_url": "/test2api/mdmService/supplyRelation/submitSupplyRelation/" "submitSupplyRelation_url": "/test2api/hdiFusion/supplyRelation/submitSupplyRelation"
"listVoPage_url": "/test2api/mdmService/supplyRelation/listVoPage/" "listVoPage_url": "/test2api/hdiFusion/supplyRelation/listVoPage/"
"editSupplyRelation_url": "/test2api/mdmService/supplyRelation/editSupplyRelation/" "editSupplyRelation_url": "/test2api/mdmService/supplyRelation/editSupplyRelation/"
"auditSupplyRelation_url": "/test2api/mdmService/supplyRelation/auditSupplyRelation/" "auditSupplyRelation_url": "/test2api/mdmService/supplyRelation/auditSupplyRelation/"
"listProvInfoBySubProv_url": "/test2api/mdmService/supplyRelation/listProvInfoBySubProv/" "listProvInfoBySubProv_url": "/test2api/mdmService/supplyRelation/listProvInfoBySubProv/"
...@@ -42,6 +42,7 @@ json_headers2: { ...@@ -42,6 +42,7 @@ json_headers2: {
"orderBy": "sr.create_time desc" "orderBy": "sr.create_time desc"
} }
"payload2": { "payload2": {
"pageNum": 1, "pageNum": 1,
"pageSize": 20, "pageSize": 20,
......
供货关系申请: 供货关系申请:
e_corpId: p00002e79 e_corpId: p1df18
h_corpId: h24d7 h_corpId: h277b
e_username: 国药集团公司l!t)N e_username: 国药集团公司*&Xer
h_name: 湖南省人民医院%8!qw h_name: 湖南省人民医院6)sJI
...@@ -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'>0分4秒</td> <td class='details-col-elapsed'>0分40</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/注册医院审核通过/log.html' target='_blank'>注册医院审核通过</a></td> <td class="details-col-elapsed"><a href='../log/a3供货关系申请_客户类型_医院_供销关系申请提交/log.html' target='_blank'>a3供货关系申请_客户类型_医院_供销关系申请提交</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">4.119</td> <td class="details-col-elapsed">40.018</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