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
3f81f254
Commit
3f81f254
authored
Oct 18, 2023
by
liguangyu06
Browse files
用例优化
parent
cb6d8957
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_commodity_activity/活动黑名单用户验证.air/活动黑名单用户验证.py
View file @
3f81f254
...
...
@@ -46,8 +46,8 @@ company_code = result["data"][0]["companyCode"]
product_code
=
result
[
"data"
][
0
][
"productCode"
]
# 登录多采商城获取所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username
3
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
3
"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username
5
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
5
"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcMaiiLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers1"
,
cmdc_access_token
)
...
...
air_case/cmdc_commodity_activity/赠品_jde0元_验证.air/赠品_jde0元_验证.py
View file @
3f81f254
...
...
@@ -16,8 +16,8 @@ module = "cmdc_commodity_activity"
# 第一步登录后台运营平台获取cmdc_access_token
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username
4
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
4
"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username
8
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
8
"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcDoLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
cmdc_access_token
)
...
...
@@ -47,8 +47,8 @@ for i in result["data"]:
product_code
=
result
[
"data"
][
0
][
"productCode"
]
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username
3
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
3
"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username
7
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password
7
"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcMaiiLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers1"
,
cmdc_access_token
)
...
...
data/cmdc_commodity_activity/data
View file @
3f81f254
...
...
@@ -165,20 +165,20 @@ checkDict21: {"activityBasicId": "%s"}
#获取活动规则
"payload22": {"activityBasic":{"activityBasicId":"10138","activityName":"","activityStatus":"","activityType":1},"activityDifferenceUser":{"customerCode":"","customerCompanyName":""},"activityProduct":{"productCode":"","materialCode":"","productLineCode":null,"specifications":""},"allowanceFlag":null,"pageSize":10,"pageStart":1,"startTime":null,"cStartTime":null,"endTime":null,"cEndTime":null,"pageNum":1}
#黑名单用户信息
"username
3
": "BJ0500"
"password
3
": "Tss12345"
"username
5
": "BJ0500"
"password
5
": "Tss12345"
#预期结果
checkDict22: {"activity": null}
#赠品验证
# 国联公司多采商城登录信息
"username
3
": "GL1000086"
"password
3
": "Aa123456"
"username
7
": "GL1000086"
"password
7
": "Aa123456"
#后台运营管理系统登录信息(国联公司)
"username
4
": "Admin00102"
"password
4
": "Aa123456"
"username
8
": "Admin00102"
"password
8
": "Aa123456"
#验证赠品(jde0元)活动
#在促销列表中获取指定促销活动
...
...
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