Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-cmdc
Commits
b70827d1
Commit
b70827d1
authored
Nov 02, 2023
by
liguangyu06
Browse files
用例优化
parent
0f696c5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_login/后台管理系统登录/后台管理系统登录.py
View file @
b70827d1
...
...
@@ -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
...
...
air_case/cmdc_login/多采商城登录/多采商城登录.py
View file @
b70827d1
...
...
@@ -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
...
...
data/cmdc_fresenius_group/data
View file @
b70827d1
...
...
@@ -88,7 +88,7 @@ checkDict90: {"status": 2}
#测试场景十:验证新增相同名称套包
"url10": "/order/public/saveFreseniusGroup"
"payload10": {"manufacturerGroupName":"","manufacturerGroupCode":"","groupName":"%s","products":[{"productCode":"14
479934
","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":"70
47412
","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":"1
2926166
","productName":"
检查手套
","manufacturer":"
A.R. Medicom Inc.
","manufacturerCode":"700
1141
","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":"14
959195
","productName":"
3M™Cavilon™干洗洁肤液","manufacturer":"3M中国有限公司
","manufacturerCode":"70
00536
","optionStr":"
3380C 236ml
","storageCondition":"999","activityUnitAmount":null,"price":
49.83
,"measuringUnit":"
瓶
","materialCode":"
XQ003802697
","description":"","quantity":"3
2
","manufacturerProductNo":null,"manufacturerProductDesc":null,"produceRegisterNum":
null
,"productLineName":"
3M医疗
","productLineCode":"
7021
"},{"productCode":"1
4628643
","productName":"
3M™爱护佳皮肤清洗液
","manufacturer":"
3M中国有限公司
","manufacturerCode":"700
0
536
","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}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment