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
71075936
Commit
71075936
authored
Feb 05, 2024
by
liguangyu06
Browse files
优化
parent
91e51ef2
Changes
7
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_product/m_商品限购规则批量导入.air/m_商品限购规则批量导入.py
View file @
71075936
...
...
@@ -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
=
"1
2364265
"
product_name
=
"
医用检查手套
"
cus_code
=
"10
71246
"
cus_name
=
"
上海勘泽贸易商行
"
product_code
=
"1
0145131
"
product_name
=
"
掌指骨部支具(腱鞘炎)
"
cus_code
=
"10
07035
"
cus_name
=
"
北京东信医疗器械有限公司
"
# 将商品信息写入文件中
excel
=
HandleExcel
(
file_path
,
"Sheet1"
)
...
...
air_case/cmdc_product/o_雅培商品折扣规则批量导入验证.air/o_雅培商品折扣规则批量导入验证.py
View file @
71075936
...
...
@@ -17,8 +17,8 @@ module = "cmdc_product"
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username
1
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
1
"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username
2
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
2
"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcDoLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers_file"
,
cmdc_access_token
)
...
...
air_case/cmdc_product/p_雅培商品折扣规则删除验证.air/p_雅培商品折扣规则删除验证.py
View file @
71075936
...
...
@@ -14,8 +14,8 @@ import json
module
=
"cmdc_product"
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username
1
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
1
"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username
2
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
2
"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcDoLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
cmdc_access_token
)
...
...
air_case/cmdc_product/q_按条件删除协议价验证.air/q_按条件删除协议价验证.py
View file @
71075936
...
...
@@ -15,8 +15,8 @@ import os
module
=
"cmdc_product"
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username
1
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
1
"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username
2
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
2
"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcDoLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers_file"
,
cmdc_access_token
)
...
...
data/cmdc_files/雅培维护价格批量删除模板.xlsx
View file @
71075936
No preview for this file type
data/cmdc_files/雅培维护价格批量导入模板.xlsx
View file @
71075936
No preview for this file type
data/cmdc_product/data
View file @
71075936
...
...
@@ -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":"1
2364265
"}
"payload47_1": {"pageNum":1,"pageSize":8,"total":1,"productCode":"1
0145131
"}
#预期结果
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":"100
82402
","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":"100
16229
","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}
#测试场景五十六:按条件删除协议价验证
...
...
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