Commit 8df4adaa authored by liguangyu06's avatar liguangyu06
Browse files

用例新增:电商下单时间排序功能验证_返利使用报表列表_降序

parent 6a5c4e47
......@@ -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_exist(check_dict, result)
commonFuc().check_result(check_dict, result)
......@@ -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_exist(check_dict, result)
commonFuc().check_result(check_dict, result)
......@@ -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_exist(check_dict, result)
commonFuc().check_result(check_dict, result)
......@@ -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, "url31")
request_body = commonFuc().get_business_data(module, "payload31")
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url32")
request_body = commonFuc().get_business_data(module, "payload32")
"""
......@@ -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_exist(check_dict, result)
commonFuc().check_result(check_dict, result)
......@@ -46,5 +46,5 @@ result["api_time"] = api_time
check_dict = commonFuc().get_business_data(module, "checkDict7")
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_variable_exist(check_dict, result)
commonFuc().check_result(check_dict, result)
......@@ -71,6 +71,6 @@ result["api_time"] = api_time
check_dict = commonFuc().get_business_data(module, "checkDict8")
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_variable_exist(check_dict, result)
commonFuc().check_result(check_dict, result)
......@@ -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"}
......
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