Commit f6ebc133 authored by 周念东's avatar 周念东
Browse files

卡片位管理更新

parent 86cafc63
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
__author__ = "zhouniandong" __author__ = "zhouniandong"
""" """
case_tag:cmdc_api,cmdc卡片位按公司代码查询公司选项,2293,2293-3,sit,bs case_tag:cmdc_api,cmdc卡片位管理按公司代码查询公司选项,2293,2293-3,sit,bs
主数据平台:运营后台管理系统卡片位管理接口 主数据平台:运营后台管理系统卡片位管理接口
""" """
...@@ -26,13 +26,13 @@ request_body = commonFuc().get_business_data(module, "payload1") ...@@ -26,13 +26,13 @@ request_body = commonFuc().get_business_data(module, "payload1")
""" """
场景:卡片位管理() 场景:卡片位管理()
用例名称:卡片位管理(卡片位管理) 用例名称:卡片位管理按公司代码查询公司选项(卡片位管理)
输出:{"success":true,"code":"200","message":"OK"} 输出:{"success":true,"code":"200","message":"OK"}
""" """
# 发送请求 # 发送请求
result = requests.get(url, json=request_body, headers=headers) result = requests.get(url, json=request_body, headers=headers)
result = json.loads(result.content) result = json.loads(result.content)
print("\033[031mresult============\033[0m",result) #print("\033[031mresult============\033[0m",result)
# 获取预期结果 # 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict1") check_dict = commonFuc().get_business_data(module, "checkDict1")
print(check_dict) print(check_dict)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
__author__ = "zhouniandong" __author__ = "zhouniandong"
""" """
case_tag:cmdc_api,cmdc卡片位查询页面,2293,2293-3,sit,bs case_tag:cmdc_api,cmdc卡片位管理查询页面,2293,2293-3,sit,bs
主数据平台:运营后台管理系统卡片位管理接口 主数据平台:运营后台管理系统卡片位管理接口
""" """
...@@ -26,13 +26,13 @@ request_body = commonFuc().get_business_data(module, "payload2") ...@@ -26,13 +26,13 @@ request_body = commonFuc().get_business_data(module, "payload2")
""" """
场景:卡片位管理() 场景:卡片位管理()
用例名称:卡片位查询页面(卡片位管理) 用例名称:卡片位管理查询页面(卡片位管理)
输出:{"success":true,"code":"200","message":"OK"} 输出:{"success":true,"code":"200","message":"OK"}
""" """
# 发送请求 # 发送请求
result = requests.post(url, json=request_body, headers=headers) result = requests.post(url, json=request_body, headers=headers)
result = json.loads(result.content) result = json.loads(result.content)
print("\033[031mresult============\033[0m",result) #print("\033[031mresult============\033[0m",result)
# 获取预期结果 # 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict2") check_dict = commonFuc().get_business_data(module, "checkDict2")
print(check_dict) print(check_dict)
......
...@@ -6,7 +6,7 @@ json_headers: { ...@@ -6,7 +6,7 @@ json_headers: {
"Cmdc_access_token": "%s" "Cmdc_access_token": "%s"
} }
#卡片位按公司代码查询公司选项 #卡片位管理按公司代码查询公司选项
"url1": "/user/public/queryCompanyOptionsByCompanyCode" "url1": "/user/public/queryCompanyOptionsByCompanyCode"
"payload1": "payload1":
#预期结果 #预期结果
...@@ -14,11 +14,11 @@ checkDict1: {"success":true,"code":"200","message":"OK"} ...@@ -14,11 +14,11 @@ checkDict1: {"success":true,"code":"200","message":"OK"}
#卡片位查询页面 #卡片位管理查询页面
"url2": "/cms/card/queryPage" "url2": "/cms/card/queryPage"
"payload2": {"companyId":null,"companyType":null,"title":"","disableSign":null,"startTime":"","endTime":"","pageNumber":1,"pageSize":10} "payload2": {"companyId":null,"companyType":null,"title":"","disableSign":null,"startTime":"","endTime":"","pageNumber":1,"pageSize":10}
#预期结果 #预期结果
checkDict2: {"success":true,"code":"200","message":"操作成功","data":{"pageNum":1,"pageSize":4,"size":4,"startRow":0,"endRow":3,"total":4,"pages":1,"list":[{"title":"外科专区","cardId":21,"companyId":6,"mapUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/cmsFile/2021/04/15/285763fb-8861-4e72-a2b2-55d29606f81c.jpg","linkUrl":"/specialArea?id=97","sort":1,"isPublish":2,"publistTime":"2021-08-17 09:43:14","disableSign":0,"deleteSign":0,"createTime":"2021-04-15 17:16:57","updateTime":"2021-08-17 09:26:12","createBy":2795,"updateBy":2795,"companyName":"国药集团上海医疗器械有限公司","companyType":"2"},{"title":"心外专区","cardId":22,"companyId":6,"mapUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/cmsFile/2021/04/21/737d54a7-5c95-4646-b92f-88f6431847e2.jpg","linkUrl":"","sort":2,"isPublish":2,"publistTime":"2021-08-17 09:43:14","disableSign":0,"deleteSign":0,"createTime":"2021-04-15 17:17:32","updateTime":"2021-04-21 14:43:36","createBy":2795,"updateBy":2795,"companyName":"国药集团上海医疗器械有限公司","companyType":"2"},{"title":"伤口管理专区","cardId":23,"companyId":6,"mapUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/cmsFile/2021/04/15/02e89b7e-3e1f-40d9-9674-9649d48f24c1.jpg","linkUrl":"/specialArea?id=21","sort":3,"isPublish":2,"publistTime":"2021-08-17 09:43:14","disableSign":0,"deleteSign":0,"createTime":"2021-04-15 17:17:54","updateTime":"2021-06-09 14:46:21","createBy":2795,"updateBy":2795,"companyName":"国药集团上海医疗器械有限公司","companyType":"2"},{"title":"血糖专区","cardId":24,"companyId":6,"mapUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/cmsFile/2021/04/21/5e691044-ba76-45f2-99dd-03c6356d55ca.jpg","linkUrl":"/specialArea?id=100","sort":4,"isPublish":2,"publistTime":"2021-08-17 09:43:14","disableSign":0,"deleteSign":0,"createTime":"2021-04-15 17:18:10","updateTime":"2021-08-17 09:43:12","createBy":2795,"updateBy":2795,"companyName":"国药集团上海医疗器械有限公司","companyType":"2"}],"prePage":0,"nextPage":0,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[1],"navigateFirstPage":1,"navigateLastPage":1,"firstPage":1,"lastPage":1},"freshToken":null} checkDict2: {"success":true,"code":"200","message":"操作成功"}
......
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