Commit 754b76e8 authored by 周念东's avatar 周念东
Browse files

用例优化

parent eb6d6ecf
No related merge requests found
Showing with 15 additions and 15 deletions
+15 -15
air_case/cmdc_login/多采商城登录/verifycode.png

1.99 KB | W: 0px | H: 0px

air_case/cmdc_login/多采商城登录/verifycode.png

1.94 KB | W: 0px | H: 0px

air_case/cmdc_login/多采商城登录/verifycode.png
air_case/cmdc_login/多采商城登录/verifycode.png
air_case/cmdc_login/多采商城登录/verifycode.png
air_case/cmdc_login/多采商城登录/verifycode.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -2,7 +2,7 @@
__author__ = "zhouniandong"
"""
case_tag:cmdc_api,cmdc多采商城上报植入台账已上报清单,1001-2,1001-2-1,sit,bs
case_tag:cmdc_api,cmdc上报植入台账已上报清单,1001-2,1001-2-1,sit,bs
主数据平台:多采商城上报植入台账接口
"""
......@@ -28,7 +28,7 @@ print(url1)
request_body1 = commonFuc().get_business_data(module, "payload3")
"""
场景:多采商城上报植入台账
用例名称:多采商城上报植入台账已上报清单(多采商城上报植入台账)
用例名称:上报植入台账已上报清单(多采商城上报植入台账)
输出:{"success":true,"code":"200","message":"OK","data":"ok"}
"""
# 发送请求
......
......@@ -23,9 +23,9 @@ password1 = commonFuc().get_business_data(module, "password")
cmdc_access_token1 = CmdcMaiiLogin(username1, password1).get_token()
headers1 = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token1)
# print(headers1)
url1 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url5")
url1 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url11")
print(url1)
request_body1 = commonFuc().get_business_data(module, "payload5")
request_body1 = commonFuc().get_business_data(module, "payload11")
"""
场景:多采商城上报植入
用例名称:植入上报未上报列表(多采商城上报植入)
......@@ -33,16 +33,16 @@ request_body1 = commonFuc().get_business_data(module, "payload5")
"""
# 发送请求
result1 = requests.post(url1, json=request_body1, headers=headers1)
#print("\033[031mresult1============\033[0m",result1)
print("\033[031mresult1============\033[0m",result1)
#result1 = json.loads(result1.content)
# 获取接口响应时间
api_time = float(result1.elapsed.total_seconds())
result1 = json.loads(result1.content)
result1["api_time"] = api_time
print(api_time)
#print("\033[031mresult2============\033[0m",result1)
print("\033[031mresult2============\033[0m",result1)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict5")
check_dict = commonFuc().get_business_data(module, "checkDict11")
#print("\033[031mcheckDict1============\033[0m",checkDict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result1)
......@@ -89,11 +89,11 @@ checkDict9: {"success":true,"code":"200","message":"OK","data":[],"freshToken":n
#预期结果
checkDict10: {"success":true,"code":"200","message":"OK","data":[],"freshToken":null}
#信息中心查看详情按ID查询 post
"url11": "/cms/mall/notice/queryById"
"payload11": {"noticeId":"5340033"}
#植入上报未上报列表 post
"url11": "/order/public/getReportList"
"payload11": {"productLineCode":"","reportHospitalCodeList":[],"reportAuditStatusList":[],"invoiceStatusList":[],"reportQueryType":"2","companyCode":"00103","reportHospitalCode":"","companyName":"国药集团北京医疗器械有限公司","companyId":3,"customerCode":"1127254","customerName":"国药集团云南医疗器械有限公司","isBack":0,"pageNum":1,"pageSize":10,"pageStart":1}
#预期结果
checkDict11: {"success":true,"code":"200","message":"操作成功"}
checkDict11: {"success":true,"code":"200","message":"OK"}
#信息中心查看详情更新状态 post
"url12": "/cms/mall/notice/updateStatus"
......
植入上报按客户编码获取医院信息 1719372337311 1719372338246 zhouniandong
上报植入台账待上报清单 1719383682960 1719383684002 zhouniandong
......@@ -73,11 +73,11 @@
</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.935</td>
<td class="details-col-elapsed">1.042</td>
<td class="details-col-elapsed">zhouniandong</td>
<td class="details-col-elapsed"> 0.174235</td>
<td class="details-col-elapsed"> 0.182109</td>
</tr>
</table>
......
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