Commit aa446351 authored by 邓莹莹's avatar 邓莹莹

收集错误问题概率

parent 19f06125
_gtid=bd72ad780a3411ecba3caafd9ec6639a8909;sessionid=wla128ll42nqk8wq1si8ezodu6bdxdki
\ No newline at end of file
_gtid=972ceaba0ad511ecaded3ea52a58a7e77092;sessionid=51h04tub409l8bi7l471qcqvteecdhq4
\ No newline at end of file
import pytest
if __name__ == '__main__':
pytest.main(["-m", "fail"])
\ No newline at end of file
[pytest]
markers=
fail : "测试常见报错500接口的错误率"
......@@ -10,6 +10,7 @@ class TestThirdPhoneLogin:
thirdphonelogin_case,thirdphonelogin_data = get_ids(data,"login_thirdphone")
@pytest.mark.fail
@pytest.mark.parametrize("param",thirdphonelogin_data,ids = thirdphonelogin_case)
def test_thirdphone_login(self,param):
......
......@@ -10,6 +10,7 @@ class TestDiaryService:
data = BaseRequest().api_load(path_setting.DIARY_SERVICE)
diary_service_case, diary_service_data = get_ids(data, "diary_service")
@pytest.mark.fail
@pytest.mark.parametrize("param",diary_service_data,ids=diary_service_case)
def test_diary_service(self,param):
# print(2)
......
......@@ -10,6 +10,7 @@ class TestServices:
data = BaseRequest().api_load(path_setting.DOCTOR_V2_SERVICE)
services_case, services_data = get_ids(data, "services")
@pytest.mark.fail
@pytest.mark.parametrize("param", services_data, ids=services_case)
def test_services(self, param):
r = doctor_v2_request().services()
......
......@@ -10,6 +10,7 @@ class TestTelatedServiceData:
data = BaseRequest().api_load(path_setting.RELATED_SERVICE_DATA)
related_service_data_case, related_service_data_data = get_ids(data, "related_service_data")
@pytest.mark.fail
@pytest.mark.parametrize("param", related_service_data_data, ids=related_service_data_case)
def test_related_service_data(self, param):
r = hybrid_promotion_request().related_service_data(param["service_id"], param["page"])
......
......@@ -10,6 +10,7 @@ class TestProductMallServiceHomeFeed:
data = BaseRequest().api_load(path_setting.FEED_TAB_SERVICE)
productmallservicehomefeed_case, productmallservicehomefeed_data = get_ids(data, "feed_service")
@pytest.mark.fail
@pytest.mark.parametrize("param", productmallservicehomefeed_data, ids=productmallservicehomefeed_case)
def test_product_mall_service_home_feed(self,param):
r = janus_request().feed_service(param["tab_value"], param["first_load"])
......
......@@ -12,6 +12,7 @@ class TestRecomendServices:
# @pytest.mark.skip
# @pytest.mark.skip("跳过测颜值根据五官推荐美购,目前数据是参数是线上的-------------------")
@pytest.mark.fail
@pytest.mark.parametrize("param",recomendservice_data,ids=recomendservice_case)
def test_recomend_services(self,param):
r = oneimage_request().recomend_services(param["version"], param["business_tags_names"])
......
......@@ -10,7 +10,7 @@ class TestSkinRecommendServices:
data = BaseRequest().api_load(path_setting.SKIN_RECOMMEND_SERVICE_DATA)
skin_recommend_service_case, skin_recommend_service_data = get_ids(data, "recommend_service")
# @pytest.mark.skip
@pytest.mark.fail
@pytest.mark.parametrize("param",skin_recommend_service_data,ids=skin_recommend_service_case)
def test_recommend_services(self,param):
r = skin_request().skin_recommend_service(param["device_id"], param["current_city_id"], param["appeal_tag_ids"],
......
......@@ -11,6 +11,7 @@ class TestGengmeiGetWxacodeUnlimited:
genbgmeiGetWxacodeUmlimited_case, gengmeiGetWxacodeUmlimited_data = get_ids(data, "gengmei_get_wxacode_unlimited")
# @pytest.mark.skip("测颜值返回二维码,目前测试环境报错,只能跑线上的-------------------")
@pytest.mark.fail
@pytest.mark.parametrize("param",gengmeiGetWxacodeUmlimited_data,ids=genbgmeiGetWxacodeUmlimited_case)
def test_get_wxacode_umlinited(self,param):
r = xcx_request().gengmei_get_wxacode_unlimited(param["page"], param["scene"])
......
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