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
8df4adaa
Commit
8df4adaa
authored
Apr 12, 2024
by
liguangyu06
Browse files
用例新增:电商下单时间排序功能验证_返利使用报表列表_降序
parent
6a5c4e47
Changes
7
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_34st/任务年份排序功能验证_销售任务报表列表_升序.air/任务年份排序功能验证_销售任务报表列表_升序.py
View file @
8df4adaa
...
...
@@ -62,4 +62,4 @@ taskName = mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict39"
,
taskName
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_
variable_exis
t
(
check_dict
,
result
)
commonFuc
().
check_
resul
t
(
check_dict
,
result
)
air_case/cmdc_34st/任务年份排序功能验证_销售任务报表列表_降序.air/任务年份排序功能验证_销售任务报表列表_降序.py
View file @
8df4adaa
...
...
@@ -62,5 +62,5 @@ taskName = mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict40"
,
taskName
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_
variable_exis
t
(
check_dict
,
result
)
commonFuc
().
check_
resul
t
(
check_dict
,
result
)
air_case/cmdc_34st/电商下单时间排序功能验证_返利使用报表列表_升序.air/电商下单时间排序功能验证_返利使用报表列表_升序.py
View file @
8df4adaa
...
...
@@ -69,4 +69,4 @@ demandCode = mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0]
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict31"
,
demandCode
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_
variable_exis
t
(
check_dict
,
result
)
commonFuc
().
check_
resul
t
(
check_dict
,
result
)
air_case/cmdc_34st/电商下单时间排序功能验证_返利使用报表列表_降序.air/电商下单时间排序功能验证_返利使用报表列表_降序.py
View file @
8df4adaa
...
...
@@ -22,8 +22,8 @@ cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
cmdc_access_token
)
# 第二步按电商下单时间降序排列
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url3
1
"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload3
1
"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url3
2
"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload3
2
"
)
"""
...
...
@@ -61,12 +61,11 @@ sql = "select demandCode from (select createTime, demandCode " \
" where subtd.demandId is not null "
\
" and subtd.sellerCompanyCode = '00102' "
\
" and ((subsku.promotionPrice is not null and subsku.promotionPrice > 0) or (subtd.rebateAmount > 0)) "
\
" order by td.createTime desc) tmp_count) t order by createTime desc"
" order by td.createTime desc) tmp_count) t order by createTime desc
"
demandCode
=
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
)[
0
][
0
]
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict32"
,
demandCode
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_
variable_exis
t
(
check_dict
,
result
)
commonFuc
().
check_
resul
t
(
check_dict
,
result
)
air_case/cmdc_34st/近效期商品明细列表新增物料编码字段验证.air/近效期商品明细列表新增物料编码字段验证.py
View file @
8df4adaa
...
...
@@ -46,5 +46,5 @@ result["api_time"] = api_time
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict7"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_
variable_exis
t
(
check_dict
,
result
)
commonFuc
().
check_
resul
t
(
check_dict
,
result
)
air_case/cmdc_34st/近效期商品明细批量导出新增物料编码字段验证.air/近效期商品明细批量导出新增物料编码字段验证.py
View file @
8df4adaa
...
...
@@ -71,6 +71,6 @@ result["api_time"] = api_time
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict8"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_
variable_exis
t
(
check_dict
,
result
)
commonFuc
().
check_
resul
t
(
check_dict
,
result
)
data/cmdc_34st/data
View file @
8df4adaa
...
...
@@ -112,9 +112,18 @@ checkDict31: {"demandCode":"%s"}
checkDict32: {"demandCode":"%s"}
#测试场景33:电商审核时间排序功能验证_返利使用报表列表_升序
"url33": "/order/public/getDemandSaleVo"
"payload33": {"sortKey":"auditTime","sortValue":1,"saleType":2,"pageStart":1,"pageSize":10}
#预期结果
checkDict33: {"demandCode":"%s"}
#测试场景34:电商审核时间排序功能验证_返利使用报表列表_降序
"url34": "/order/public/getDemandSaleVo"
"payload34": {"sortKey":"auditTime","sortValue":2,"saleType":2,"pageStart":1,"pageSize":10}
#预期结果
checkDict34: {"demandCode":"%s"}
...
...
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