Commit 256db2a5 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本调整

parent d767ac3d
...@@ -26,6 +26,7 @@ def h_login(): ...@@ -26,6 +26,7 @@ def h_login():
""" """
#供货关系申请_客户类型_医院_登录_医院登录获取医院id #供货关系申请_客户类型_医院_登录_医院登录获取医院id
#如果需要h0347账号登录,这里就从文件获取 #如果需要h0347账号登录,这里就从文件获取
module = "mdm3_cm"
username = h_name username = h_name
# print('医院名称',username) # print('医院名称',username)
password = commonFuc().get_business_data(module, "password") password = commonFuc().get_business_data(module, "password")
......
...@@ -29,7 +29,7 @@ def reg_and_audit_hospital(): ...@@ -29,7 +29,7 @@ def reg_and_audit_hospital():
# 医院审核接口_查询数据_开始 # 医院审核接口_查询数据_开始
# 登录 # 登录
username = commonFuc().get_business_data(module, "username") username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password") password = commonFuc().get_business_data(module, "password1")
print(username, password) print(username, password)
# 获取token和projectCode # 获取token和projectCode
token, projectCode, uxid,corpId,info = login_system(username, password).get_token() token, projectCode, uxid,corpId,info = login_system(username, password).get_token()
......
...@@ -30,7 +30,7 @@ print(result) ...@@ -30,7 +30,7 @@ print(result)
# 医院审核接口_查询数据_开始 # 医院审核接口_查询数据_开始
# 登录 # 登录
username = commonFuc().get_business_data(module, "username") username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password") password = commonFuc().get_business_data(module, "password1")
print(username, password) print(username, password)
# 获取token和projectCode # 获取token和projectCode
token, projectCode, uxid,corpId,info = login_system(username, password).get_token() token, projectCode, uxid,corpId,info = login_system(username, password).get_token()
......
...@@ -29,13 +29,13 @@ from 企业审核 import * ...@@ -29,13 +29,13 @@ from 企业审核 import *
输出:"rtn_msg": "ok" 输出:"rtn_msg": "ok"
""" """
# 登录 # 登录
module = "mdm3_pim"
username = global_var_cname username = global_var_cname
password = commonFuc().get_business_data(module, "password") password = commonFuc().get_business_data(module, "password")
print(username, password) print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode # 获取token和projectCode
token, projectCode, uxid, corpId,info = login_system(username, password).get_token() token, projectCode, uxid, corpId,info = login_system(username, password).get_token()
# 分页查询供应商产品数据接口 # 分页查询供应商产品数据接口
module = "mdm3_pim"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "listVoPage_url") url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "listVoPage_url")
print(url) print(url)
# 获取请求头信息 # 获取请求头信息
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"checkHosRegistInfo_url": "/test2api/mdmService/companyRegistBill/checkHosRegistInfo" "checkHosRegistInfo_url": "/test2api/mdmService/companyRegistBill/checkHosRegistInfo"
"username": "test001" "username": "test001"
"password": "a123456!" "password": "a123456!"
"password1": "1qaz!QAZ"
json_contentType: "application/json" json_contentType: "application/json"
......
产品新增: 产品新增:
username: 国药集团公司Qjp8! username: 国药集团公司1O4Qy
goodsname: 一次性注射器Cclgt goodsname: 一次性注射器uHVxG
...@@ -54,10 +54,10 @@ ...@@ -54,10 +54,10 @@
</tr> </tr>
<tr width="600"> <tr width="600">
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>5</td>
<td class='details-col-elapsed'>0</td> <td class='details-col-elapsed'>5</td>
<td class='details-col-elapsed'>0分2</td> <td class='details-col-elapsed'>0分3</td>
<td class="details-col-elapsed">0.0%</td> <td class="details-col-elapsed">100.0%</td>
</tr> </tr>
</table> </table>
...@@ -72,9 +72,37 @@ ...@@ -72,9 +72,37 @@
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/a2供货关系申请_客户类型_医院_登录_企业登录/log.html' target='_blank'>a2供货关系申请_客户类型_医院_登录_企业登录</a></td> <td class="details-col-elapsed"><a href='../log/医院注册_正常注册_私立医院/log.html' target='_blank'>医院注册_正常注册_私立医院</a></td>
<td class="fail">失败</td> <td class="success">成功</td>
<td class="details-col-elapsed">2.138</td> <td class="details-col-elapsed">0.289</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.227</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.164</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">1.856</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.961</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