Commit 1c48469c authored by 张淑琴's avatar 张淑琴

Merge branch 'common_dev' of http://git.wanmeizhensuo.com/dengyingying/backend_auto into common_dev

parents ebd694ad 7419f7f3
No preview for this file type
...@@ -12,7 +12,22 @@ class doctor_request(BaseRequest): ...@@ -12,7 +12,22 @@ class doctor_request(BaseRequest):
self.params["doctor_id"] = doctor_id self.params["doctor_id"] = doctor_id
return self.api_send(self.data["article"]) return self.api_send(self.data["article"])
#医生主页详情
def detail(self):
return self.api_send(self.data["detail"])
#医生主页案例列表
def diary(self, doctor_id):
self.params["doctor_id"] = doctor_id
return self.api_send(self.data["diary"])
if __name__ == '__main__': if __name__ == '__main__':
#打印医生/医院主页-医生说/医院说列表接口返回 #打印医生/医院主页-医生说/医院说列表接口返回
print(doctor_request().article("9918ad7eb8f511e58f8200163e000a4a")) print(doctor_request().article("9918ad7eb8f511e58f8200163e000a4a"))
#打印医生主页详情接口返回
print(doctor_request.detail())
#打印医生主页案例列表接口返回
print(doctor_request.diary("5bd9f05cad51403d853ba8c881989e23"))
\ No newline at end of file
...@@ -10,3 +10,22 @@ article: ...@@ -10,3 +10,22 @@ article:
doctor_type: 0 doctor_type: 0
data: {} data: {}
json: {} json: {}
#医生主页详情
detail:
method: get
url: /api/doctor/5bd9f05cad51403d853ba8c881989e23/detail
params: {}
data: {}
json: {}
#医生主页案例列表
diary:
method: get
url: /api/doctor/diary
params:
doctor_id: ${doctor_id}
count: 4
page: 1
data: {}
json: {}
\ No newline at end of file
import path_setting
from in_common.base_request import BaseRequest
class doctor_v2_request(BaseRequest):
def __init__(self):
self.data = self.api_load(path_setting.DOCTOR_V2_CONFIG)
#医生主页商品列表
def services(self):
return self.api_send(self.data["services"])
if __name__ == '__main__':
#打印医生主页商品列表接口返回
print(doctor_v2_request().services())
\ No newline at end of file
#医生主页商品列表
services:
method: get
url: /api/doctor_v2/5bd9f05cad51403d853ba8c881989e23/services
params:
offset: 0
show_tag_distro: 1
tag_id: all
size: 10
data: {}
json: {}
\ No newline at end of file
import path_setting
from in_common.base_request import BaseRequest
class gmai_request(BaseRequest):
def __init__(self):
self.data = self.api_load(path_setting.GMAI_SKIN_NEWREPORT_CONFIG)
# 测颜值结果页
def skin_newReport(self,version,image_url):
self.params["version"] = version
self.params["image_url"] = image_url
return self.api_send(self.data["skin_newReport"])
# 模拟双眼皮
def eyelids_plastic(self,version,image_url,style_id):
self.params["version"] = version
self.params["image_url"] = image_url
self.params["style_id"] = style_id
return self.api_send(self.data["eyelids_plastic"])
# if __name__ == '__main__':
# # print(gmai_request().skin_newReport("7.43.0","https://pic.igengmei.com/2021/05/11/1440/25e4bf45673f-s"))
# # print(gmai_request().eyelids_plastic("7.43.0", "2021/05/12/1457/cdbe8652117d","3"))
skin_newReport:
method: post
url: /gm_ai/skin/new_report
params:
version: ${version}
data:
image_url: ${image_url}
eyelids_plastic:
method: post
url: /gm_ai/eyelids/plastic
params:
version: ${version}
data:
image_url: ${image_url}
style_id: ${style_id}
import path_setting
from in_common.base_request import BaseRequest
class janus_request(BaseRequest):
def __init__(self):
self.data = self.api_load(path_setting.CONTENTV7_CONFIG)
self.data = self.api_load(path_setting.HOSPITALSEARCH_CONFIG)
#搜索结果页-综合/百科tab
def content_v7(self, query, device_id, current_city_id, version, is_first, tab_type, offset):
#搜索词
self.params['query'] = query
#设备号
self.params['device_id'] = device_id
#当前城市
self.params['current_city_id'] = current_city_id
#APP版本
self.params['version'] = version
#是否为第一次请求
self.params['is_first'] = is_first
#类型
self.params['tab_type'] = tab_type
#请求的页数 0,10,20
self.params['offset'] = offset
return self.api_send(self.data['content_v7'])
#医院主页搜索
def hospital_search(self, query, device_id, hospital_id, current_city_id, version, offset):
#搜索词
self.params['query'] = query
#设备号
self.params['device_id'] = device_id
#医院id
self.params['hospital_id'] = hospital_id
#当前城市
self.params['current_city_id'] = current_city_id
#APP版本
self.params['version'] = version
#请求的页数 0,10,20
self.params['offset'] = offset
return self.api_send(self.data['hospital_search'])
#购物车-猜你喜欢列表
def mine_guess_you_like(self):
return self.api_send(self.data["mine_guess_you_like"])
if __name__ == '__main__':
#打印购物车-猜你喜欢列表接口返回
print(janus_request().mine_guess_you_like())
content_v7:
method : get
url : /api/janus/search/v7/content
params :
query: ${query}
device_id: ${device_id}
current_city_id: ${current_city_id}
version: ${version}
is_first: ${is_first}
tab_type: ${tab_type}
offset: ${offset}
data: {}
json: {}
hospital_search:
method: get
url: /api/janus/search/hospital_search
params:
query: ${query}
device_id: ${device_id}
hospital_id: ${hospital_id}
current_city_id: ${current_city_id}
version: ${version}
offset: ${offset}
data: { }
json: { }
#购物车-猜你喜欢
mine_guess_you_like:
method: get
url: /api/janus/product/mine_guess_you_like
params: {}
data: {}
json: {}
isLogin: 1
...@@ -5,7 +5,7 @@ from in_common.base_request import BaseRequest ...@@ -5,7 +5,7 @@ from in_common.base_request import BaseRequest
class service_request(BaseRequest): class service_request(BaseRequest):
def __init__(self): def __init__(self):
self.data = self.api_load(path_setting.HOME_V5_CONFIG) self.data = self.api_load(path_setting.HOME_V5_CONFIG) #/all_backend_api/service_request.yaml
def home_v5(self): def home_v5(self):
......
import path_setting
from in_common.base_request import BaseRequest
class shopcart_request(BaseRequest):
def __init__(self):
self.data = self.api_load(path_setting.SHOPCART_CONFIG)
#购物车列表
def list(self):
return self.api_send(self.data["list"])
if __name__ == '__main__':
#打印购物车列表接口返回
print(shopcart_request().list())
\ No newline at end of file
#购物车列表
list:
method: get
url: /api/shopcart/list/v2
params: {}
data: {}
json: {}
isLogin: 1
\ No newline at end of file
...@@ -4,6 +4,16 @@ from in_common.base_request import BaseRequest ...@@ -4,6 +4,16 @@ from in_common.base_request import BaseRequest
class user_request(BaseRequest): class user_request(BaseRequest):
def __init__(self):
self.data = self.api_load(path_setting.PERSONAL_CENTER_CONFIG)
def personal_center(self):
print("fgx")
return self.api_send(self.data["personal_center"])
def __init__(self): def __init__(self):
self.data = self.api_load(path_setting.USER_ANSWER_CONFIG) self.data = self.api_load(path_setting.USER_ANSWER_CONFIG)
...@@ -14,5 +24,11 @@ class user_request(BaseRequest): ...@@ -14,5 +24,11 @@ class user_request(BaseRequest):
if __name__ == '__main__': if __name__ == '__main__':
#个人中心
print(user_request().personal_center())
print("fgx")
#打印医生/医院主页问答列表接口返回 #打印医生/医院主页问答列表接口返回
print(user_request().answer("21476198")) print(user_request().answer("21476198"))
personal_center:
method: GET
url: /api/user/personal_center
params:
choose_id: 0
community_id: 0
version: 7.42.0
data: {}
json: {}
isLogin: 1
#医院主页-问答接口 #医院主页-问答接口
answer: answer:
method: get method: get
...@@ -8,3 +19,4 @@ answer: ...@@ -8,3 +19,4 @@ answer:
page: 1 page: 1
data: {} data: {}
json: {} json: {}
develop_host: develop_host:
backend: http://backend.paas-develop.env backend: http://backend.paas-develop.env
# doctor: http://doctor.paas-develop.env doctor: http://doctor.paas-develop.env
...@@ -63,11 +63,20 @@ class BaseRequest: ...@@ -63,11 +63,20 @@ class BaseRequest:
def api_send(self, req: dict): def api_send(self, req: dict):
host = self.api_load(path_setting.HOSTYAML_CONFIG) host = self.api_load(path_setting.HOSTYAML_CONFIG)
url_host = "" url_host = ""
# 获取调用该方法的路径
if host["develop_host"].get("doctor") == "http://doctor.paas-develop.env": import inspect
url_host = host['develop_host']['doctor'] ins_file = inspect.stack()[1].filename
elif host["develop_host"].get("backend") == "http://backend.paas-develop.env": ins_dir = ins_file.split('/')[-2]
url_host = host['develop_host']['backend'] host_service = ins_dir.split('_')[1]
# default: backend
if host_service not in host['develop_host']:
host_service = 'backend'
url_host = host['develop_host'][host_service]
# if host["develop_host"].get("doctor") is not None:
# url_host = host['develop_host']['doctor']
# elif host["develop_host"].get("backend") is not None:
# url_host = host['develop_host']['backend']
raw = yaml.dump(req) # 将一个python对象生成为yaml文档 raw = yaml.dump(req) # 将一个python对象生成为yaml文档
for key, value in self.params.items(): for key, value in self.params.items():
......
...@@ -50,6 +50,12 @@ ONEIMAGE_SHARE_V4_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/ ...@@ -50,6 +50,12 @@ ONEIMAGE_SHARE_V4_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/
# 测颜值根据五官推荐美购 # 测颜值根据五官推荐美购
ONEIMAGE_RECOMEND_SERVICES_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/oneimage_data", "recomend_services.yaml") ONEIMAGE_RECOMEND_SERVICES_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/oneimage_data", "recomend_services.yaml")
# 测肤结果页
GMAI_SKIN_NEWREPORT_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "gmai_request.yaml")
GMAI_SKIN_NEWREPORT_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/gmai_data", "skin_newReport.yaml")
# 模拟双眼皮
GMAI_EYELIDS_PLASTIC_DATA = os.path.join(BASE_DIR, "backend_auto/test_backend_data/gmai_data", "eyelids_plastic.yaml")
LOGIN_PASSWD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/accounts_data", "login_passwd.yaml") LOGIN_PASSWD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/accounts_data", "login_passwd.yaml")
LOGIN_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "accounts_request.yaml") LOGIN_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "accounts_request.yaml")
...@@ -67,10 +73,23 @@ HOSPITAL_DIARY = os.path.join(BASE_DIR, "backend_auto/test_backend_data/hospital ...@@ -67,10 +73,23 @@ HOSPITAL_DIARY = os.path.join(BASE_DIR, "backend_auto/test_backend_data/hospital
#医生/医院主页-医生/医院说列表 #医生/医院主页-医生/医院说列表
DOCTOR_ARTICLE_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "doctor_request.yaml") DOCTOR_ARTICLE_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "doctor_request.yaml")
DOCTOR_ARTICLE = os.path.join(BASE_DIR, "backend_auto/test_backend_data/doctor_data", "article.yaml") DOCTOR_ARTICLE = os.path.join(BASE_DIR, "backend_auto/test_backend_data/doctor_data", "article.yaml")
#医生主页详情
DOCTOR_DETAIL = os.path.join(BASE_DIR, "backend_auto/test_backend_data/doctor_data", "detail.yaml")
#医生主页案例列表
DOCTOR_DIARY = os.path.join(BASE_DIR, "backend_auto/test_backend_data/doctor_data", "diary.yaml")
#医生主页商品列表
DOCTOR_V2_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "doctor_v2_request.yaml")
DOCTOR_V2_SERVICE = os.path.join(BASE_DIR, "backend_auto/test_backend_data/doctor_v2_data", "services.yaml")
#医生/医院主页-问答列表 #医生/医院主页-问答列表
USER_ANSWER_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml") USER_ANSWER_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml")
USER_ANSWER = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "answer.yaml") USER_ANSWER = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "answer.yaml")
#购物车列表
SHOPCART_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "shopcart_request.yaml")
SHOPCART_LIST = os.path.join(BASE_DIR, "backend_auto/test_backend_data/shopcart_data", "list.yaml")
#购物车-猜你喜欢列表
JANUS_MINE_GUESS_YOU_LIKE = os.path.join(BASE_DIR, "backend_auto/test_backend_data/janus_data", "mine_guess_you_like.yaml")
#消息列表 #消息列表
MY_CONVERSATION_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "my_conversation_request.yaml") MY_CONVERSATION_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "my_conversation_request.yaml")
MY_CONVERSATION = os.path.join(BASE_DIR, "backend_auto/test_backend_data/my_conversation_data", "my_conversation.yaml") MY_CONVERSATION = os.path.join(BASE_DIR, "backend_auto/test_backend_data/my_conversation_data", "my_conversation.yaml")
...@@ -78,6 +97,17 @@ MY_CONVERSATION = os.path.join(BASE_DIR, "backend_auto/test_backend_data/my_conv ...@@ -78,6 +97,17 @@ MY_CONVERSATION = os.path.join(BASE_DIR, "backend_auto/test_backend_data/my_conv
HOME_V5_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "service_request.yaml") HOME_V5_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "service_request.yaml")
HOME_V5=os.path.join(BASE_DIR,"backend_auto/test_backend_data/service_data","home_v5.yaml") HOME_V5=os.path.join(BASE_DIR,"backend_auto/test_backend_data/service_data","home_v5.yaml")
PERSONAL_CENTER_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "user_request.yaml")
PERSONAL_CENTER = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data", "personal_center.yaml")
#搜索结果页-综合/百科
CONTENTV7_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "janus_request.yaml")
CONTENTV7 = os.path.join(BASE_DIR, "backend_auto/test_backend_data/janus_data", "content_v7.yaml")
#医院主页搜索
HOSPITALSEARCH_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "janus_request.yaml")
HOSPITALSEARCH = os.path.join(BASE_DIR, "backend_auto/test_backend_data/janus_data", "hospital_search.yaml")
#直播 #直播
LIVEYAML_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "live_request.yaml") LIVEYAML_CONFIG = os.path.join(BASE_DIR, "backend_auto/all_backend_api", "live_request.yaml")
#直播-获取弹幕 #直播-获取弹幕
...@@ -99,5 +129,6 @@ UNREAD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/notification_dat ...@@ -99,5 +129,6 @@ UNREAD = os.path.join(BASE_DIR, "backend_auto/test_backend_data/notification_dat
#标记为已读 #标记为已读
READALL = os.path.join(BASE_DIR, "backend_auto/test_backend_data/notification_data", "readall.yaml") READALL = os.path.join(BASE_DIR, "backend_auto/test_backend_data/notification_data", "readall.yaml")
if __name__ == '__main__': if __name__ == '__main__':
print("==========",LIVEYAML_CONFIG) print("==========",LIVEYAML_CONFIG)
import pytest
from all_backend_api.doctor_request import doctor_request
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
class TestDetail:
data = BaseRequest().api_load(path_setting.DOCTOR_DETAIL)
detail_case, detail_data = get_ids(data, "detail")
@pytest.mark.parametrize("param", detail_data, ids=detail_case)
def test_detail(self, param):
r = doctor_request().detail()
if r["error"] == 0:
assert r["error"] == param["assert_error"]
import pytest
from all_backend_api.doctor_request import doctor_request
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
class TestDiary:
data = BaseRequest().api_load(path_setting.DOCTOR_DIARY)
diary_case, diary_data = get_ids(data, "diary")
@pytest.mark.parametrize("param", diary_data, ids=diary_case)
def test_diary(self, param):
r = doctor_request().diary(param["doctor_id"])
if r["error"] == 0:
assert r["error"] == param["assert_error"]
import pytest
from all_backend_api.doctor_v2_request import doctor_v2_request
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
class TestServices:
data = BaseRequest().api_load(path_setting.DOCTOR_V2_SERVICE)
services_case, services_data = get_ids(data, "services")
@pytest.mark.parametrize("param", services_data, ids=services_case)
def test_services(self, param):
r = doctor_v2_request().services()
if r["error"] == 0:
assert r["error"] == param["assert_error"]
import pytest
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
from all_backend_api.gmai_request import gmai_request
# 模拟双眼皮效果
class TestEyelidsPlastic:
data = BaseRequest().api_load(path_setting.GMAI_EYELIDS_PLASTIC_DATA)
eyelidsplastic_case, eyelidsplastic_data = get_ids(data, "eyelids_plastic")
@pytest.mark.parametrize("param",eyelidsplastic_data,ids=eyelidsplastic_case)
def test_skinnewReport(self,param):
r = gmai_request().eyelids_plastic(param["version"], param["image_url"],param["style_id"])
assert r["error"] == 0
print("模拟双眼皮效果图片: ",r["data"]["plastic_image_url"])
\ No newline at end of file
import pytest
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
from all_backend_api.gmai_request import gmai_request
# 测肤结果页
class TestSkinNewReport:
data = BaseRequest().api_load(path_setting.GMAI_SKIN_NEWREPORT_DATA)
skinnewReport_case, skinnewReport_data = get_ids(data, "skin_newReport")
@pytest.mark.parametrize("param",skinnewReport_data,ids=skinnewReport_case)
def test_skinnewReport(self,param):
r = gmai_request().skin_newReport(param["version"], param["image_url"])
if r["error"] == 0:
data = r.get("data")
# 大家都在买
packages = data.get("packages")
assert len(packages) == 6
# 皮肤检测结果
disadvantage_tabs = data.get("disadvantage_tabs")
result_word = disadvantage_tabs[0].get("result_word")
assert result_word == "色素型黑眼圈"
import pytest
import path_setting
from all_backend_api.janus_request import janus_request
from ids_list import get_ids
from in_common.base_request import BaseRequest
#搜索结果页-综合/百科tab
class TestContentV7:
data = BaseRequest().api_load(path_setting.CONTENTV7)
contentv7_case, contentv7_data = get_ids(data, "content_v7")
@pytest.mark.parametrize("param", contentv7_data, ids=contentv7_case)
def test_content_v7(self, param):
print(param['query'])
r = janus_request().content_v7(param["query"], param["device_id"], param["current_city_id"], param["version"], param["is_first"], param["tab_type"], param["offset"])
if r["error"] == 0:
assert r["data"]["cards"][0]["type"] == param["assert"]
if r["error"] == 1:
assert r["message"] == param["assert"]
\ No newline at end of file
import pytest
import path_setting
from all_backend_api.janus_request import janus_request
from ids_list import get_ids
from in_common.base_request import BaseRequest
#医院主页搜索
class TestHospitalSearch:
data = BaseRequest().api_load(path_setting.HOSPITALSEARCH)
hospitalsearch_case, hospitalsearch_data = get_ids(data, "hospital_search")
@pytest.mark.parametrize("param", hospitalsearch_data, ids=hospitalsearch_case)
def test_hospital_search(self, param):
print(param['query'])
r = janus_request().hospital_search(param["query"], param["device_id"], param["hospital_id"], param["current_city_id"], param["version"], param["offset"])
if r["error"] == 0:
assert len(r["data"]["search_skus"]) != param["assert1"]
assert len(r["data"]["search_skus"]) == param["assert2"]
if r["error"] == 1:
assert r["message"] == param["assert"]
import pytest
from all_backend_api.janus_request import janus_request
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
class TestMineGuessYouLike:
data = BaseRequest().api_load(path_setting.JANUS_MINE_GUESS_YOU_LIKE)
mine_guess_you_like_case, mine_guess_you_like_data = get_ids(data, "mine_guess_you_like")
@pytest.mark.parametrize("param", mine_guess_you_like_data, ids=mine_guess_you_like_case)
def test_mine_guess_you_like(self, param):
r = janus_request().mine_guess_you_like()
if r["error"] == 0:
assert r["error"] == param["assert_error"]
...@@ -9,13 +9,13 @@ from all_backend_api.service_request import service_request ...@@ -9,13 +9,13 @@ from all_backend_api.service_request import service_request
class TestHomeV5: class TestHomeV5:
data = BaseRequest().api_load(path_setting.HOME_V5) data = BaseRequest().api_load(path_setting.HOME_V5)
homev5_case, homev5_data = get_ids(data, "home_v5") homev5_case, homev5_data = get_ids(data, "home_v5")
print(data)
@pytest.mark.parametrize("param",homev5_data,ids=homev5_case) @pytest.mark.parametrize("param",homev5_data,ids=homev5_case)
def test_home_v5(self,param): def test_home_v5(self,param):
#print(param["home_v5"])
r = service_request().home_v5() r = service_request().home_v5()
print(r) print(r)
print("home_v6")
#if r["error"] == 0: #if r["error"] == 0:
assert r["error"] == param["assert"] assert r["error"] == param["assert"]
......
import pytest
from all_backend_api.shopcart_request import shopcart_request
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
class TestList:
data = BaseRequest().api_load(path_setting.SHOPCART_LIST)
list_case, list_data = get_ids(data, "list")
@pytest.mark.parametrize("param", list_data, ids=list_case)
def test_list(self, param):
r = shopcart_request().list()
if r["error"] == 0:
assert r["error"] == param["assert_error"]
import pytest
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
from all_backend_api.user_request import user_request
class TestPersonalCenter:
data = BaseRequest().api_load(path_setting.PERSONAL_CENTER)
personalcenter_case, personalcenter_data = get_ids(data, "personal_center")
@pytest.mark.parametrize("param", personalcenter_data, ids=personalcenter_case)
def test_personal_center(self, param):
r = user_request().personal_center()
print('feng=', r)
if r["error"] == 0:
assert r["error"] == param["assert"]
assert r["data"]["user"]["portrait"] != param["portrait"]
detail:
-
case: "校验接口返回成功case"
assert_error: 0
\ No newline at end of file
diary:
-
case: "校验接口返回成功case"
doctor_id: 5bd9f05cad51403d853ba8c881989e23
assert_error: 0
\ No newline at end of file
services:
-
case: "校验接口返回成功case"
assert_error: 0
\ No newline at end of file
eyelids_plastic:
#模拟双眼皮效果
-
case: "平行双眼皮效果"
version: "7.43.0"
image_url: "2021/05/12/1457/cdbe8652117d"
style_id: "1"
-
case: "开扇双眼皮效果"
version: "7.43.0"
image_url: "2021/05/12/1457/cdbe8652117d"
style_id: "3"
\ No newline at end of file
skin_newReport:
#测颜值根据五官推荐美购
-
case: "请求成功"
version: "7.43.0"
image_url: "https://pic.igengmei.com/2021/05/11/1440/25e4bf45673f-s"
assert: 1
\ No newline at end of file
...@@ -2,31 +2,31 @@ services: ...@@ -2,31 +2,31 @@ services:
- -
case: "校验接口调用成功case" case: "校验接口调用成功case"
assert_error: 0 assert_error: 0
assert_sku: 546450 assert_sku: 608136
assert_spu: 5866530 assert_spu: 5844882
assert_discount: True assert_discount: True
assert_sales: 3 assert_sales: 3
assert_card_type: "card" assert_card_type: "card"
assert_title: "G点注射】G点注射激活修复,G点玻尿酸注射唤醒 提升G点敏感度 提升塑造敏感G点 G点增厚 小阴唇整形 修复矫正" assert_title: "阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽 外阴收紧 小阴唇整形+私密清洁 阴道紧致 紧致润滑 产后修复 改善松弛"
assert_tagselected: true assert_tagselected: true
- -
case: "校验商品数据case" case: "校验商品数据case"
assert_error: 0 assert_error: 0
assert_sku: 546450 assert_sku: 608136
assert_spu: 5866530 assert_spu: 5844882
assert_discount: True assert_discount: True
assert_sales: 3 assert_sales: 3
assert_card_type: "card" assert_card_type: "card"
assert_title: "G点注射】G点注射激活修复,G点玻尿酸注射唤醒 提升G点敏感度 提升塑造敏感G点 G点增厚 小阴唇整形 修复矫正" assert_title: "阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽 外阴收紧 小阴唇整形+私密清洁 阴道紧致 紧致润滑 产后修复 改善松弛"
assert_tagselected: true assert_tagselected: true
- -
case: "校验商品标签数据case" case: "校验商品标签数据case"
assert_error: 0 assert_error: 0
assert_sku: 546450 assert_sku: 608136
assert_spu: 5866530 assert_spu: 5844882
assert_discount: True assert_discount: True
assert_sales: 3 assert_sales: 3
assert_card_type: "card" assert_card_type: "card"
assert_title: "G点注射】G点注射激活修复,G点玻尿酸注射唤醒 提升G点敏感度 提升塑造敏感G点 G点增厚 小阴唇整形 修复矫正" assert_title: "阴道紧缩】菲蜜丽激光外阴收紧,【激光阴道紧缩】进口菲蜜丽 外阴收紧 小阴唇整形+私密清洁 阴道紧致 紧致润滑 产后修复 改善松弛"
assert_tagselected: true assert_tagselected: true
content_v7:
-
#搜索结果页-综合tab---搜索成功
case: "搜索结果页--综合tab---搜索成功"
query: "脱毛"
device_id: "1321222222222222135"
current_city_id: "beijing"
version: "742.2"
is_first: "1"
tab_type: "0"
offset: "0"
assert: 2
-
#搜索结果页-百科tab---搜索成功
case: "搜索结果页-百科tab---搜索成功"
query: "双眼皮"
device_id: "1321222222222222135"
current_city_id: "beijing"
version: "742.2"
is_first: "0"
tab_type: "12"
offset: "0"
assert: 12
-
#搜索结果页-综合tab---下拉加载成功(请求第二波数据)
case: "搜索结果页--综合tab---下拉加载成功(请求第二波数据)"
query: "双眼皮"
device_id: "1321222222222222135"
current_city_id: "beijing"
version: "742.2"
is_first: "0"
tab_type: "0"
offset: "10"
assert: 2
-
#搜索结果页-百科tab---下拉加载成功(请求第二波数据)
case: "搜索结果页-百科tab---下拉加载成功(请求第二波数据)"
query: "双眼皮"
device_id: "1321222222222222135"
current_city_id: "beijing"
version: "742.2"
is_first: "0"
tab_type: "12"
offset: "10"
assert: 12
# -测试环境无法验证该用例
# #搜索结果页-综合tab---召回百科穿插
# case: "搜索结果页--综合tab---没有召回百科穿插"
# query: "双眼皮"
# device_id: "1321222222222222135"
# current_city_id: "beijing"
# version: "742.2"
# is_first: "1"
# tab_type: "0"
# offset: "0"
# assert: 12
-
#搜索结果页-综合tab---搜索词为医院全称或简称,搜索结果页医院穿插置顶展示
case: "搜索结果页-综合tab---搜索词为医院全称或简称,搜索结果页医院穿插置顶展示"
query: "北京凯润婷"
device_id: "1321222222222222135"
current_city_id: "beijing"
version: "742.2"
is_first: "1"
tab_type: "0"
offset: "0"
assert: 3
-
#搜索结果页-综合tab---搜索词为医生全称,搜索结果页医生穿插置顶展示
case: "搜索结果页-综合tab---搜索词为医生全称,搜索结果页医生穿插置顶展示"
query: "崔鑫"
device_id: "1321222222222222135"
current_city_id: "beijing"
version: "742.2"
is_first: "1"
tab_type: "0"
offset: "0"
assert: 6
\ No newline at end of file
hospital_search:
-
#医院主页搜索---搜索成功,有数据召回
case: "医院主页搜索---搜索成功,有数据召回"
query: "玻尿酸"
device_id: "1321222222222222135"
hospital_id: "96ea37eef81d11e692f800163e000a4a"
current_city_id: "beijing"
version: "742.2"
offset: "0"
assert1: 0
assert2: 10
-
#医院主页搜索---搜索成功,无数据召回
case: "医院主页搜索---搜索成功,无数据召回"
query: "美白针"
device_id: "1321222222222222135"
hospital_id: "96ea37eef81d11e692f800163e000a4a"
current_city_id: "beijing"
version: "742.2"
offset: "0"
assert1: 10
assert2: 0
# -
# #医院主页搜索---搜索成功,无数据召回
# case: "医院主页搜索---搜索成功,无数据召回"
# query: "瘦脸针"
# device_id: "1321222222222222135"
# hospital_id: "96ea37eef81d11e692f800163e000a4a"
# current_city_id: "beijing"
# version: "742.2"
# offset: "0"
# assert1: 0
# assert2: 0
\ No newline at end of file
mine_guess_you_like:
-
case: "校验接口返回成功case"
assert_error: 0
\ No newline at end of file
...@@ -3,5 +3,5 @@ recomend_services: ...@@ -3,5 +3,5 @@ recomend_services:
- -
case: "请求成功,返回个数正确" case: "请求成功,返回个数正确"
version: "7.42.2" version: "7.42.2"
business_tags_names: '[["鼻翼缩小","玻尿酸隆鼻","耳软骨隆鼻","鼻中隔软骨隆鼻"]]' business_tags_names: '[["玻尿酸垫下巴","自体脂肪垫下巴","硅胶垫下巴","膨体垫下巴"],["半永久纹眉","植眉"]]'
assert: 1 assert: 2
\ No newline at end of file \ No newline at end of file
home_v5: home_v5:
#获取商城首页 #获取商城首页
- -
case: "获取商城首页--case首页" case: "获取商城首页index--case首页"
assert: 0 assert: 0
......
list:
-
case: "校验接口返回成功case"
assert_error: 0
\ No newline at end of file
personal_center:
#个人中心
-
case: "获取个人中心--case首页"
assert: 0
portrait: null
Markdown is supported
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