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

产品规格申报

审核产品规格申报_查询
审核产品规格申报_锁定
优化脚本
parent 94032d3f
......@@ -2,7 +2,7 @@
__author__ = "xiaohesheng"
"""
case_tag:api,mdm-web境内,id2232,id2232-1,sit,on
case_tag:api,mdm-web,id2232,id2232-1,sit,on
主数据平台:注册企业接口
"""
......
# -*- encoding=utf8 -*-
import sys
from air_case.mdm_login.登录外网系统.登录外网系统 import login_system
from common.timeUtils import timeUtils
from common.common_func import commonFuc
from common.fileUtls import *
__author__ = "xiaohesheng"
"""
case_tag:api,mdm-web产品规格新增,id2251,id2251-2,sit,on,2023091202
主数据平台:web产品规格新增
"""
module = "mdm3_pim"
# 登录
info = FileUtils().r_info(module,'产品新增')
username=info['username']
goodsname=info['goodsname']
password = commonFuc().get_business_data(module, "password")
# print(username, password)
# 获取token和projectCode
token, projectCode, uxid, corpId,info = login_system(username, password).get_token()
# 分页查询供应商产品数据接口
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "listVoPage_url")
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
projectCode)
request_body = commonFuc().get_business_data(module, "payload", corpId)
# 发送请求
result = commonFuc().http_post(url, request_body, headers)
# print('实际值',result)
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
data = commonFuc().analysis_json('data', data)
# print('aaaaaaaaaaaaaaaaaaaaaaaaaaaa',data)
# 断言实际结果中是否包含预期结果的内容
# 新注册的企业首次查询产品信息,预期结果为空
check_dict = commonFuc().get_business_data(module, "checkDict")
......@@ -9,6 +9,7 @@
"getGoodsRegistBillDetail_url": "/test2api/mdmService/goodsRegistBill/getGoodsRegistBillDetail/"
"handleAuditGoodsRegist_url": "/test2api/mdmService/goodsRegistBill/handleAuditGoodsRegist/"
"submitGoodsSpecsRegist_url": "/test2api/mdmService/goodsRegistBill/submitGoodsSpecsRegist/"
"username": "1679886114521"
"password": "a123456!"
......
......@@ -56,7 +56,7 @@
<tr width="600">
<td class='details-col-elapsed'>7</td>
<td class='details-col-elapsed'>7</td>
<td class='details-col-elapsed'>0分4</td>
<td class='details-col-elapsed'>0分2</td>
<td class="details-col-elapsed">100.0%</td>
</tr>
</table>
......@@ -72,51 +72,51 @@
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a企业认领/log.html' target='_blank'>a企业认领</a></td>
<td class="details-col-elapsed"><a href='../log/器械注册人_企业注册提交_正常注册_境内/log.html' target='_blank'>器械注册人_企业注册提交_正常注册_境内</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">1.082</td>
<td class="details-col-elapsed">0.342</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a企业锁定/log.html' target='_blank'>a企业锁定</a></td>
<td class="details-col-elapsed"><a href='../log/外网企业注册-器械注册人/log.html' target='_blank'>外网企业注册-器械注册人</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">1.088</td>
<td class="details-col-elapsed">0.221</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="details-col-elapsed"><a href='../log/医院注册_注册时医院已存在/log.html' target='_blank'>医院注册_注册时医院已存在</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.651</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="details-col-elapsed"><a href='../log/医院注册正常注册公立医院/log.html' target='_blank'>医院注册正常注册公立医院</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.4</td>
<td class="details-col-elapsed">0.138</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/企业查询2/log.html' target='_blank'>企业查询2</a></td>
<td class="details-col-elapsed"><a href='../log/注册医院审核通过/log.html' target='_blank'>注册医院审核通过</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.435</td>
<td class="details-col-elapsed">0.95</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="details-col-elapsed"><a href='../log/注册医院审核驳回/log.html' target='_blank'>注册医院审核驳回</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.001</td>
<td class="details-col-elapsed">0.625</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="details-col-elapsed"><a href='../log/登录外网系统/log.html' target='_blank'>登录外网系统</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.806</td>
<td class="details-col-elapsed">0.002</td>
<td class="details-col-elapsed">xiaohesheng</td>
</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