Commit 71075936 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 91e51ef2
......@@ -29,10 +29,10 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.pa
file_path = BASE_DIR + "/data/cmdc_files/商品限购模板.xlsx"
# 设定商品信息
product_code = "12364265"
product_name = "医用检查手套"
cus_code = "1071246"
cus_name = "上海勘泽贸易商行"
product_code = "10145131"
product_name = "掌指骨部支具(腱鞘炎)"
cus_code = "1007035"
cus_name = "北京东信医疗器械有限公司"
# 将商品信息写入文件中
excel = HandleExcel(file_path, "Sheet1")
......
......@@ -17,8 +17,8 @@ module = "cmdc_product"
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username1")
password = commonFuc().get_business_data(module, "password1")
username = commonFuc().get_business_data(module, "username2")
password = commonFuc().get_business_data(module, "password2")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers_file", cmdc_access_token)
......
......@@ -14,8 +14,8 @@ import json
module = "cmdc_product"
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username1")
password = commonFuc().get_business_data(module, "password1")
username = commonFuc().get_business_data(module, "username2")
password = commonFuc().get_business_data(module, "password2")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
......
......@@ -15,8 +15,8 @@ import os
module = "cmdc_product"
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username1")
password = commonFuc().get_business_data(module, "password1")
username = commonFuc().get_business_data(module, "username2")
password = commonFuc().get_business_data(module, "password2")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers_file", cmdc_access_token)
......
......@@ -6,6 +6,9 @@
"username1": "Admin00111"
"password1": "Aa123456"
#后台运营管理系统登录信息(子站点国联医疗器械有限公司)
"username2": "Admin00102"
"password2": "Aa123456"
#后台管理系统headers
json_headers: {
......@@ -337,7 +340,7 @@ checkDict46: {"success":true,"code":"200","message":"OK"}
"url47": "/product/productLimitBuy/del"
"payload47": {"ids":"%s"}
# 查询指定商品限购规则请求报文
"payload47_1": {"pageNum":1,"pageSize":8,"total":1,"productCode":"12364265"}
"payload47_1": {"pageNum":1,"pageSize":8,"total":1,"productCode":"10145131"}
#预期结果
checkDict47: {"success":true,"code":"200","message":"OK","data":True}
......@@ -394,7 +397,7 @@ checkDict54: {"success":true,"code":"200","message":"OK"}
#预期结果
checkDict55: {"success":true,"code":"200"}
# 获取指定商品折扣信息报文
"payload55": {"companyName":null,"productCode":"10082402","productName":null,"areaName":null,"productLineName":null,"specifications":null,"materialCode":null,"manufacturer":null,"customerCode":null,"customerName":null,"queryTimes":[],"pageNum":1,"pageSize":8,"total":null,"startTime":null,"endTime":null}
"payload55": {"companyName":null,"productCode":"10016229","productName":null,"areaName":null,"productLineName":null,"specifications":null,"materialCode":null,"manufacturer":null,"customerCode":null,"customerName":null,"queryTimes":[],"pageNum":1,"pageSize":8,"total":null,"startTime":null,"endTime":null}
#测试场景五十六:按条件删除协议价验证
......
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