Commit cb6d8957 authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent b6dd9c54
......@@ -2,7 +2,7 @@
__author__ = "liguangyu"
"""
case_tag:cmdc_api,cmdc赠品(jde0元)活动验证,2262,2262-30,sit,bs
case_tag:cmdc_api,cmdc赠品(jde0元)活动验证,2262,2262-40,sit,bs
涉及接口:运营后台管理系统登录、活动基本信息获取、活动包含的商品信息和查询商品对应的促销活动等接口
"""
......
......@@ -15,8 +15,8 @@ module = "cmdc_coupon"
# 第一步登录多采商城获取cmdc_access_token
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username3")
password = commonFuc().get_business_data(module, "password3")
username = commonFuc().get_business_data(module, "username5")
password = commonFuc().get_business_data(module, "password5")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcMaiiLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token)
......@@ -41,4 +41,4 @@ result = {"couponId": result["data"][0]["couponId"]}
check_dict = commonFuc().get_business_data(module, "checkDict11")
print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
\ No newline at end of file
commonFuc().check_result(check_dict, result)
......@@ -120,8 +120,8 @@ checkDict10: {"couponId": "%s"}
#我的优惠券列表
"url12": "/order/mall/myCoupon?status=101"
#活动客户信息-多采商城
"username3": "BJ0500"
"password3": "Tss12345"
"username5": "BJ0500"
"password5": "Tss12345"
#预期结果
checkDict11: {"couponId": 10033}
......
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