Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
on_line_product
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓莹莹
on_line_product
Commits
aa446351
Commit
aa446351
authored
Sep 01, 2021
by
邓莹莹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收集错误问题概率
parent
19f06125
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
3 deletions
+18
-3
get_cookie.txt
in_common/get_cookie.txt
+2
-2
main.py
main.py
+5
-0
pytest.ini
pytest.ini
+3
-0
test_thirdPhone_login.py
test_backend_case/account_case/test_thirdPhone_login.py
+1
-0
test_service.py
test_backend_case/diary_case/test_service.py
+1
-0
test_services.py
test_backend_case/doctor_v2_case/test_services.py
+1
-0
test_related_service_data.py
...d_case/hybrid_promotion_case/test_related_service_data.py
+1
-0
test_product_mall_service_home_feed.py
...nd_case/janus_case/test_product_mall_service_home_feed.py
+1
-0
test_recomend_services.py
test_backend_case/oneimage_case/test_recomend_services.py
+1
-0
test_recommend_service.py
test_backend_case/skin_case/test_recommend_service.py
+1
-1
test_gengmei_get_wxacode_unlimited.py
...ckend_case/xcx_case/test_gengmei_get_wxacode_unlimited.py
+1
-0
No files found.
in_common/get_cookie.txt
View file @
aa446351
_gtid=bd72ad780a3411ecba3caafd9ec6639a8909;sessionid=wla128ll42nqk8wq1si8ezodu6bdxdki
_gtid=972ceaba0ad511ecaded3ea52a58a7e77092;sessionid=51h04tub409l8bi7l471qcqvteecdhq4
\ No newline at end of file
\ No newline at end of file
main.py
0 → 100644
View file @
aa446351
import
pytest
if
__name__
==
'__main__'
:
pytest
.
main
([
"-m"
,
"fail"
])
\ No newline at end of file
pytest.ini
0 → 100644
View file @
aa446351
[pytest]
markers
=
fail
:
"测试常见报错500接口的错误率"
test_backend_case/account_case/test_thirdPhone_login.py
View file @
aa446351
...
@@ -10,6 +10,7 @@ class TestThirdPhoneLogin:
...
@@ -10,6 +10,7 @@ class TestThirdPhoneLogin:
thirdphonelogin_case
,
thirdphonelogin_data
=
get_ids
(
data
,
"login_thirdphone"
)
thirdphonelogin_case
,
thirdphonelogin_data
=
get_ids
(
data
,
"login_thirdphone"
)
@pytest.mark.fail
@pytest.mark.parametrize
(
"param"
,
thirdphonelogin_data
,
ids
=
thirdphonelogin_case
)
@pytest.mark.parametrize
(
"param"
,
thirdphonelogin_data
,
ids
=
thirdphonelogin_case
)
def
test_thirdphone_login
(
self
,
param
):
def
test_thirdphone_login
(
self
,
param
):
...
...
test_backend_case/diary_case/test_service.py
View file @
aa446351
...
@@ -10,6 +10,7 @@ class TestDiaryService:
...
@@ -10,6 +10,7 @@ class TestDiaryService:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_SERVICE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DIARY_SERVICE
)
diary_service_case
,
diary_service_data
=
get_ids
(
data
,
"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
)
@pytest.mark.parametrize
(
"param"
,
diary_service_data
,
ids
=
diary_service_case
)
def
test_diary_service
(
self
,
param
):
def
test_diary_service
(
self
,
param
):
# print(2)
# print(2)
...
...
test_backend_case/doctor_v2_case/test_services.py
View file @
aa446351
...
@@ -10,6 +10,7 @@ class TestServices:
...
@@ -10,6 +10,7 @@ class TestServices:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DOCTOR_V2_SERVICE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
DOCTOR_V2_SERVICE
)
services_case
,
services_data
=
get_ids
(
data
,
"services"
)
services_case
,
services_data
=
get_ids
(
data
,
"services"
)
@pytest.mark.fail
@pytest.mark.parametrize
(
"param"
,
services_data
,
ids
=
services_case
)
@pytest.mark.parametrize
(
"param"
,
services_data
,
ids
=
services_case
)
def
test_services
(
self
,
param
):
def
test_services
(
self
,
param
):
r
=
doctor_v2_request
()
.
services
()
r
=
doctor_v2_request
()
.
services
()
...
...
test_backend_case/hybrid_promotion_case/test_related_service_data.py
View file @
aa446351
...
@@ -10,6 +10,7 @@ class TestTelatedServiceData:
...
@@ -10,6 +10,7 @@ class TestTelatedServiceData:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
RELATED_SERVICE_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
RELATED_SERVICE_DATA
)
related_service_data_case
,
related_service_data_data
=
get_ids
(
data
,
"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
)
@pytest.mark.parametrize
(
"param"
,
related_service_data_data
,
ids
=
related_service_data_case
)
def
test_related_service_data
(
self
,
param
):
def
test_related_service_data
(
self
,
param
):
r
=
hybrid_promotion_request
()
.
related_service_data
(
param
[
"service_id"
],
param
[
"page"
])
r
=
hybrid_promotion_request
()
.
related_service_data
(
param
[
"service_id"
],
param
[
"page"
])
...
...
test_backend_case/janus_case/test_product_mall_service_home_feed.py
View file @
aa446351
...
@@ -10,6 +10,7 @@ class TestProductMallServiceHomeFeed:
...
@@ -10,6 +10,7 @@ class TestProductMallServiceHomeFeed:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
FEED_TAB_SERVICE
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
FEED_TAB_SERVICE
)
productmallservicehomefeed_case
,
productmallservicehomefeed_data
=
get_ids
(
data
,
"feed_service"
)
productmallservicehomefeed_case
,
productmallservicehomefeed_data
=
get_ids
(
data
,
"feed_service"
)
@pytest.mark.fail
@pytest.mark.parametrize
(
"param"
,
productmallservicehomefeed_data
,
ids
=
productmallservicehomefeed_case
)
@pytest.mark.parametrize
(
"param"
,
productmallservicehomefeed_data
,
ids
=
productmallservicehomefeed_case
)
def
test_product_mall_service_home_feed
(
self
,
param
):
def
test_product_mall_service_home_feed
(
self
,
param
):
r
=
janus_request
()
.
feed_service
(
param
[
"tab_value"
],
param
[
"first_load"
])
r
=
janus_request
()
.
feed_service
(
param
[
"tab_value"
],
param
[
"first_load"
])
...
...
test_backend_case/oneimage_case/test_recomend_services.py
View file @
aa446351
...
@@ -12,6 +12,7 @@ class TestRecomendServices:
...
@@ -12,6 +12,7 @@ class TestRecomendServices:
# @pytest.mark.skip
# @pytest.mark.skip
# @pytest.mark.skip("跳过测颜值根据五官推荐美购,目前数据是参数是线上的-------------------")
# @pytest.mark.skip("跳过测颜值根据五官推荐美购,目前数据是参数是线上的-------------------")
@pytest.mark.fail
@pytest.mark.parametrize
(
"param"
,
recomendservice_data
,
ids
=
recomendservice_case
)
@pytest.mark.parametrize
(
"param"
,
recomendservice_data
,
ids
=
recomendservice_case
)
def
test_recomend_services
(
self
,
param
):
def
test_recomend_services
(
self
,
param
):
r
=
oneimage_request
()
.
recomend_services
(
param
[
"version"
],
param
[
"business_tags_names"
])
r
=
oneimage_request
()
.
recomend_services
(
param
[
"version"
],
param
[
"business_tags_names"
])
...
...
test_backend_case/skin_case/test_recommend_service.py
View file @
aa446351
...
@@ -10,7 +10,7 @@ class TestSkinRecommendServices:
...
@@ -10,7 +10,7 @@ class TestSkinRecommendServices:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SKIN_RECOMMEND_SERVICE_DATA
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
SKIN_RECOMMEND_SERVICE_DATA
)
skin_recommend_service_case
,
skin_recommend_service_data
=
get_ids
(
data
,
"recommend_service"
)
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
)
@pytest.mark.parametrize
(
"param"
,
skin_recommend_service_data
,
ids
=
skin_recommend_service_case
)
def
test_recommend_services
(
self
,
param
):
def
test_recommend_services
(
self
,
param
):
r
=
skin_request
()
.
skin_recommend_service
(
param
[
"device_id"
],
param
[
"current_city_id"
],
param
[
"appeal_tag_ids"
],
r
=
skin_request
()
.
skin_recommend_service
(
param
[
"device_id"
],
param
[
"current_city_id"
],
param
[
"appeal_tag_ids"
],
...
...
test_backend_case/xcx_case/test_gengmei_get_wxacode_unlimited.py
View file @
aa446351
...
@@ -11,6 +11,7 @@ class TestGengmeiGetWxacodeUnlimited:
...
@@ -11,6 +11,7 @@ class TestGengmeiGetWxacodeUnlimited:
genbgmeiGetWxacodeUmlimited_case
,
gengmeiGetWxacodeUmlimited_data
=
get_ids
(
data
,
"gengmei_get_wxacode_unlimited"
)
genbgmeiGetWxacodeUmlimited_case
,
gengmeiGetWxacodeUmlimited_data
=
get_ids
(
data
,
"gengmei_get_wxacode_unlimited"
)
# @pytest.mark.skip("测颜值返回二维码,目前测试环境报错,只能跑线上的-------------------")
# @pytest.mark.skip("测颜值返回二维码,目前测试环境报错,只能跑线上的-------------------")
@pytest.mark.fail
@pytest.mark.parametrize
(
"param"
,
gengmeiGetWxacodeUmlimited_data
,
ids
=
genbgmeiGetWxacodeUmlimited_case
)
@pytest.mark.parametrize
(
"param"
,
gengmeiGetWxacodeUmlimited_data
,
ids
=
genbgmeiGetWxacodeUmlimited_case
)
def
test_get_wxacode_umlinited
(
self
,
param
):
def
test_get_wxacode_umlinited
(
self
,
param
):
r
=
xcx_request
()
.
gengmei_get_wxacode_unlimited
(
param
[
"page"
],
param
[
"scene"
])
r
=
xcx_request
()
.
gengmei_get_wxacode_unlimited
(
param
[
"page"
],
param
[
"scene"
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment