Commit b70827d1 authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent 0f696c5c
......@@ -61,7 +61,7 @@ class CmdcDoLogin():
# # 断言实际结果中是否包含预期结果的内容
# commonFuc().check_result(check_dict, result)
result = json.loads(result.content)
# print(result)
print(result)
access_token = commonFuc().analysis_json('accessToken', result)
return access_token
......
......@@ -53,6 +53,7 @@ class CmdcMaiiLogin():
# # 断言实际结果中是否包含预期结果的内容
# commonFuc().check_result(check_dict, result)
result = json.loads(result.content)
print(result)
token = commonFuc().analysis_json('accessToken', result)
return token
......
......@@ -88,7 +88,7 @@ checkDict90: {"status": 2}
#测试场景十:验证新增相同名称套包
"url10": "/order/public/saveFreseniusGroup"
"payload10": {"manufacturerGroupName":"","manufacturerGroupCode":"","groupName":"%s","products":[{"productCode":"14479934","productName":"一次性使用灭菌橡胶外科手套","manufacturer":"TG MEDICAL SDN. BHD.","manufacturerCode":"7007634","optionStr":"SFTCS1145E 7.5 无粉麻面","storageCondition":"002","activityUnitAmount":null,"price":9999999.99,"measuringUnit":"副","materialCode":"SFTCS1145E-0040050","description":"","quantity":"2","manufacturerProductNo":null,"manufacturerProductDesc":null,"produceRegisterNum":"国械注进20172661704","productLineName":"麦迪康","productLineCode":"2012"},{"productCode":"12364273","productName":"医用检查手套","manufacturer":"麦迪康(马来西亚)公司 A R MEDICOM (M) SDN BHD","manufacturerCode":"7047412","optionStr":"LATEX POWDER FREE EXAMINATION GLOVES(无粉乳胶检查手套)(SCSCL1204C M)","storageCondition":"999","activityUnitAmount":null,"price":9999999.99,"measuringUnit":"","materialCode":"SCSCL1204C-0100100","description":"","quantity":"3","manufacturerProductNo":null,"manufacturerProductDesc":null,"produceRegisterNum":"国械备20190299号","productLineName":"麦迪康","productLineCode":"2012"},{"productCode":"12926166","productName":"检查手套","manufacturer":"A.R. Medicom Inc.","manufacturerCode":"7001141","optionStr":"SAFEBASICS EASY FIT-NATURAL TEXTURED LATEX MEDICAL EXAMINATION GLOVE POWDER-FREE(1188B 乳胶无粉小号)","storageCondition":"002","activityUnitAmount":null,"price":9999999.99,"measuringUnit":"","materialCode":"SFBCL1188B-0100100","description":"","quantity":"4","manufacturerProductNo":null,"manufacturerProductDesc":null,"produceRegisterNum":"国械备20150109","productLineName":"麦迪康","productLineCode":"2012"}],"productLineName":"麦迪康","status":0,"groupType":3}
"payload10": {"manufacturerGroupName":"","manufacturerGroupCode":"","groupName":"%s","products":[{"productCode":"14959195","productName":"3M™Cavilon™干洗洁肤液","manufacturer":"3M中国有限公司","manufacturerCode":"7000536","optionStr":"3380C 236ml","storageCondition":"999","activityUnitAmount":null,"price":49.83,"measuringUnit":"","materialCode":"XQ003802697","description":"","quantity":"32","manufacturerProductNo":null,"manufacturerProductDesc":null,"produceRegisterNum":null,"productLineName":"3M医疗","productLineCode":"7021"},{"productCode":"14628643","productName":"3M™爱护佳皮肤清洗液","manufacturer":"3M中国有限公司","manufacturerCode":"7000536","optionStr":"9230M","storageCondition":"002","activityUnitAmount":null,"price":44.15,"measuringUnit":"","materialCode":"XH003817018","description":"","quantity":"17","manufacturerProductNo":null,"manufacturerProductDesc":null,"produceRegisterNum":null,"productLineName":"3M医疗","productLineCode":"7021"}],"productLineName":"3M医疗","status":0,"groupType":3}
#预期结果
checkDict10: {"success":false,"code":"FRESENIUS_GROUP_ERROR","message":"该行套包名称系统已存在,无需重复添加!","data":null,"freshToken":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