Commit 3f81f254 authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent cb6d8957
...@@ -46,8 +46,8 @@ company_code = result["data"][0]["companyCode"] ...@@ -46,8 +46,8 @@ company_code = result["data"][0]["companyCode"]
product_code = result["data"][0]["productCode"] product_code = result["data"][0]["productCode"]
# 登录多采商城获取所需账号密码 # 登录多采商城获取所需账号密码
username = commonFuc().get_business_data(module, "username3") username = commonFuc().get_business_data(module, "username5")
password = commonFuc().get_business_data(module, "password3") password = commonFuc().get_business_data(module, "password5")
# 获取登录后Cmdc_access_token # 获取登录后Cmdc_access_token
cmdc_access_token = CmdcMaiiLogin(username, password).get_token() cmdc_access_token = CmdcMaiiLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token)
......
...@@ -16,8 +16,8 @@ module = "cmdc_commodity_activity" ...@@ -16,8 +16,8 @@ module = "cmdc_commodity_activity"
# 第一步登录后台运营平台获取cmdc_access_token # 第一步登录后台运营平台获取cmdc_access_token
# 获取登录所需账号密码 # 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username4") username = commonFuc().get_business_data(module, "username8")
password = commonFuc().get_business_data(module, "password4") password = commonFuc().get_business_data(module, "password8")
# 获取登录后Cmdc_access_token # 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token() cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
...@@ -47,8 +47,8 @@ for i in result["data"]: ...@@ -47,8 +47,8 @@ for i in result["data"]:
product_code = result["data"][0]["productCode"] product_code = result["data"][0]["productCode"]
# 获取登录所需账号密码 # 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username3") username = commonFuc().get_business_data(module, "username7")
password = commonFuc().get_business_data(module, "password3") password = commonFuc().get_business_data(module, "password7")
# 获取登录后Cmdc_access_token # 获取登录后Cmdc_access_token
cmdc_access_token = CmdcMaiiLogin(username, password).get_token() cmdc_access_token = CmdcMaiiLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token)
......
...@@ -165,20 +165,20 @@ checkDict21: {"activityBasicId": "%s"} ...@@ -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} "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}
#黑名单用户信息 #黑名单用户信息
"username3": "BJ0500" "username5": "BJ0500"
"password3": "Tss12345" "password5": "Tss12345"
#预期结果 #预期结果
checkDict22: {"activity": null} checkDict22: {"activity": null}
#赠品验证 #赠品验证
# 国联公司多采商城登录信息 # 国联公司多采商城登录信息
"username3": "GL1000086" "username7": "GL1000086"
"password3": "Aa123456" "password7": "Aa123456"
#后台运营管理系统登录信息(国联公司) #后台运营管理系统登录信息(国联公司)
"username4": "Admin00102" "username8": "Admin00102"
"password4": "Aa123456" "password8": "Aa123456"
#验证赠品(jde0元)活动 #验证赠品(jde0元)活动
#在促销列表中获取指定促销活动 #在促销列表中获取指定促销活动
......
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