Commit 50eaf5f9 authored by 周念东's avatar 周念东
Browse files

总站会员注册审核

parent 66c38388
# -*- encoding=utf8 -*-
__author__ = "zhouniandong"
"""
case_tag:cmdc_api,cmdc总站会员注册审核新的三个作用域,2293,2293-3,sit,bs
主数据平台:运营后台管理系统总站会员注册审核接口
"""
from common.common_func import commonFuc
from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin
import requests
import json
module = "cmdc_audit_register"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url2")
print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
request_body = commonFuc().get_business_data(module, "payload2")
"""
场景:总站会员注册审核()
用例名称:总站会员注册审核新的三个作用域(总站会员注册审核)
输出:{"success":true,"code":"200","message":"OK"}
"""
# 发送请求
result = requests.get(url, json=request_body, headers=headers)
#print("\033[031mresult1============\033[0m",result)
result = json.loads(result.content)
#print("\033[031mresult2============\033[0m",result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict2")
print("\033[031mcheck_dict============\033[0m",check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
# -*- encoding=utf8 -*-
__author__ = "zhouniandong"
"""
case_tag:cmdc_api,cmdc总站会员注册审核新的两个作用域,2293,2293-3,sit,bs
主数据平台:运营后台管理系统总站会员注册审核接口
"""
from common.common_func import commonFuc
from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin
import requests
import json
module = "cmdc_audit_register"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1")
print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
request_body = commonFuc().get_business_data(module, "payload1")
"""
场景:总站会员注册审核()
用例名称:总站会员注册审核新的两个作用域(总站会员注册审核)
输出:{"success":true,"code":"200","message":"OK"}
"""
# 发送请求
result = requests.get(url, json=request_body, headers=headers)
#print("\033[031mresult1============\033[0m",result)
result = json.loads(result.content)
#print("\033[031mresult2============\033[0m",result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict1")
print("\033[031mcheck_dict============\033[0m",check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
# -*- encoding=utf8 -*-
__author__ = "zhouniandong"
"""
case_tag:cmdc_api,cmdc总站会员注册审核旧的三个作用域,2293,2293-3,sit,bs
主数据平台:运营后台管理系统总站会员注册审核接口
"""
from common.common_func import commonFuc
from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin
import requests
import json
module = "cmdc_audit_register"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url4")
print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
request_body = commonFuc().get_business_data(module, "payload4")
#print("\033[031mpayload4============\033[0m",payload4)
"""
场景:总站会员注册审核()
用例名称:总站会员注册审核旧的三个作用域(总站会员注册审核)
输出:{"success":true,"code":"200","message":"OK"}
"""
# 发送请求
result = requests.get(url, json=request_body, headers=headers)
#print("\033[031mresult1============\033[0m",result)
result = json.loads(result.content)
#print("\033[031mresult2============\033[0m",result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict4")
print("\033[031mcheck_dict============\033[0m",check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
# -*- encoding=utf8 -*-
__author__ = "zhouniandong"
"""
case_tag:cmdc_api,cmdc总站会员注册审核旧的两个作用域,2293,2293-3,sit,bs
主数据平台:运营后台管理系统总站会员注册审核接口
"""
from common.common_func import commonFuc
from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin
import requests
import json
module = "cmdc_audit_register"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url3")
print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
request_body = commonFuc().get_business_data(module, "payload3")
#print("\033[031mpayload3============\033[0m",payload3)
"""
场景:总站会员注册审核()
用例名称:总站会员注册审核旧的两个作用域(总站会员注册审核)
输出:{"success":true,"code":"200","message":"OK"}
"""
# 发送请求
result = requests.get(url, json=request_body, headers=headers)
#print("\033[031mresult1============\033[0m",result)
result = json.loads(result.content)
#print("\033[031mresult2============\033[0m",result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict3")
print("\033[031mcheck_dict============\033[0m",check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
# -*- encoding=utf8 -*-
__author__ = "zhouniandong"
"""
case_tag:cmdc_api,cmdc总站会员注册审核查询商户人员,2293,2293-3,sit,bs
主数据平台:运营后台管理系统总站会员注册审核接口
"""
from common.common_func import commonFuc
from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin
import requests
import json
module = "cmdc_audit_register"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url5")
print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
request_body = commonFuc().get_business_data(module, "payload5")
#print("\033[031mpayload3============\033[0m",payload3)
"""
场景:总站会员注册审核()
用例名称:总站会员注册审核查询商户人员(总站会员注册审核)
输出:{"success":true,"code":"200","message":"OK"}
"""
# 发送请求
result = requests.post(url, json=request_body, headers=headers)
#print("\033[031mresult1============\033[0m",result)
result = json.loads(result.content)
#print("\033[031mresult2============\033[0m",result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict5")
print("\033[031mcheck_dict============\033[0m",check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
# -*- encoding=utf8 -*-
__author__ = "zhouniandong"
"""
case_tag:cmdc_api,cmdc总站会员注册审核检查人员,2293,2293-3,sit,bs
主数据平台:运营后台管理系统总站会员注册审核接口
"""
from common.common_func import commonFuc
from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin
import requests
import json
module = "cmdc_audit_register"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url7")
print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
request_body = commonFuc().get_business_data(module, "payload7")
#print("\033[031mpayload3============\033[0m",payload3)
"""
场景:总站会员注册审核()
用例名称:总站会员注册审核检查人员(总站会员注册审核)
输出:{"success":true,"code":"200","message":"OK"}
"""
# 发送请求
result = requests.post(url, json=request_body, headers=headers)
#print("\033[031mresult1============\033[0m",result)
result = json.loads(result.content)
#print("\033[031mresult2============\033[0m",result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict7")
print("\033[031mcheck_dict============\033[0m",check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
# -*- encoding=utf8 -*-
__author__ = "zhouniandong"
"""
case_tag:cmdc_api,cmdc总站会员注册审核获取所有网站,2293,2293-3,sit,bs
主数据平台:运营后台管理系统总站会员注册审核接口
"""
from common.common_func import commonFuc
from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin
import requests
import json
module = "cmdc_audit_register"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url6")
print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
request_body = commonFuc().get_business_data(module, "payload6")
#print("\033[031mpayload3============\033[0m",payload3)
"""
场景:总站会员注册审核()
用例名称:总站会员注册审核获取所有网站(总站会员注册审核)
输出:{"success":true,"code":"200","message":"OK"}
"""
# 发送请求
result = requests.post(url, json=request_body, headers=headers)
#print("\033[031mresult1============\033[0m",result)
result = json.loads(result.content)
#print("\033[031mresult2============\033[0m",result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict6")
print("\033[031mcheck_dict============\033[0m",check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
#后台运营管理系统登录信息(上海公司)
"username": "Admin"
"password": "Aa123456"
json_headers: {
"Content-Type": "application/json",
"Cmdc_access_token": "%s"
}
#总站会员注册审核新的两个作用域
"url1": "/user/v2/public/dict"
"payload1": key=newTwoScope
#预期结果
checkDict1: {"success":true,"code":"200","message":"OK"}
#总站会员注册审核新的三个作用域
"url2": "/user/v2/public/dict"
"payload2": key=newThreeScope
#预期结果
checkDict2: {"success":true,"code":"200","message":"OK"}
#总站会员注册审核旧的两个作用域
"url3": "/user/v2/public/dict"
"payload3": key=oldTwoScope
#预期结果
checkDict3: {"success":true,"code":"200","message":"OK"}
#总站会员注册审核旧的三个作用域
"url4": "/user/v2/public/dict"
"payload4": key=oldThreeScope
#预期结果
checkDict4: {"success":true,"code":"200","message":"OK"}
#总站会员注册审核查询商户人员
"url5": "/user/queryMerchantsPerson"
"payload5": {"account":"","enterpriseName":"","lienceNo":"","linkName":"","linkPhone":"","queryTimes":[],"status":"","recommend":"","recommender":"","pageNumber":1,"pageSize":8,"total":0}
#预期结果
checkDict5: {"success":true,"code":"200","message":"OK"}
#总站会员注册审核获取所有网站
"url6": "/cms/public/website/getAllWebsite"
"payload6": {}
#预期结果
checkDict6: {"success":true,"code":"200","message":"操作成功"}
#总站会员注册审核检查人员
"url7": "/user/examinePerson"
"payload7": {"account":"","enterpriseName":"","lienceNo":"","linkName":"","linkPhone":"","queryTimes":[],"status":"","recommend":"","recommender":"","pageNumber":1,"pageSize":8,"total":0}
#预期结果
checkDict7: {"success":true,"code":"200","message":"OK"}
\ No newline at end of file
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