Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
backend_auto
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
邓莹莹
backend_auto
Commits
aa6c2e58
Commit
aa6c2e58
authored
Jul 05, 2021
by
张慧
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'common_dev' into zhanghui_dev
合并common_dev代码
parents
2b144efe
6e024e68
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
5 deletions
+39
-5
web2_request.py
all_doctor_api/web2_request.py
+1
-1
web2_request.yaml
all_doctor_api/web2_request.yaml
+2
-1
path_setting.py
path_setting.py
+2
-0
test_artemis_ad_packageorder_detail.py
...tor_case/web2_case/test_artemis_ad_packageorder_detail.py
+25
-0
test_conversation_coupon.py
test_doctor_case/web_case/test_conversation_coupon.py
+1
-1
artemis_ad_packageorder_detail.yaml
...doctor_data/web2_data/artemis_ad_packageorder_detail.yaml
+6
-0
conversation_coupon.yaml
test_doctor_data/web_data/conversation_coupon.yaml
+1
-1
conversation_user_id.yaml
test_doctor_data/web_data/conversation_user_id.yaml
+1
-1
No files found.
all_doctor_api/web2_request.py
View file @
aa6c2e58
...
@@ -71,5 +71,5 @@ if __name__ == '__main__':
...
@@ -71,5 +71,5 @@ if __name__ == '__main__':
print
(
web2_request
()
.
artemis_ad_add_shopping_cart_info
())
print
(
web2_request
()
.
artemis_ad_add_shopping_cart_info
())
print
(
web2_request
()
.
artemis_add_value_order_id_detail
())
print
(
web2_request
()
.
artemis_add_value_order_id_detail
())
print
(
"---11233353667----"
)
print
(
"---11233353667----"
)
#
print(web2_request().artemis_ad_packageorder_detail("685529883901"))
print
(
web2_request
()
.
artemis_ad_packageorder_detail
(
"685529883901"
))
all_doctor_api/web2_request.yaml
View file @
aa6c2e58
...
@@ -86,7 +86,7 @@ artemis_ad_packageorder_detail:
...
@@ -86,7 +86,7 @@ artemis_ad_packageorder_detail:
method
:
get
method
:
get
url
:
/api/web2/artemis/ad/packageorder/detail
url
:
/api/web2/artemis/ad/packageorder/detail
params
:
params
:
package_order_id:${package_order_id}
package_order_id
:
${package_order_id}
data
:
{}
data
:
{}
json
:
{}
json
:
{}
isLogin
:
1
#需要登录
isLogin
:
1
#需要登录
\ No newline at end of file
path_setting.py
View file @
aa6c2e58
...
@@ -431,6 +431,8 @@ ORDERLIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "arte
...
@@ -431,6 +431,8 @@ ORDERLIST=os.path.join(BASE_DIR, "backend_auto/test_doctor_data/web_data", "arte
ORDERIDDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"artemis_order_id_detail.yaml"
)
ORDERIDDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"artemis_order_id_detail.yaml"
)
#医生后台-我的服务订单-已购买订单
#医生后台-我的服务订单-已购买订单
VALUEORDERIDDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web2_data"
,
"artemis_add_value_order_id_detail.yaml"
)
VALUEORDERIDDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web2_data"
,
"artemis_add_value_order_id_detail.yaml"
)
#医生后台-我的服务订单-已购买广告包
ADPACKAGEORDERDETAIL
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web2_data"
,
"artemis_ad_packageorder_detail.yaml"
)
#医生后台-点点通商品-概览
#医生后台-点点通商品-概览
CPCHOMEPAGE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"cpc_homepage.yaml"
)
CPCHOMEPAGE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_doctor_data/web_data"
,
"cpc_homepage.yaml"
)
...
...
test_doctor_case/web2_case/test_artemis_ad_packageorder_detail.py
0 → 100644
View file @
aa6c2e58
import
pytest
from
ids_list
import
get_ids
import
path_setting
from
in_common.base_request
import
BaseRequest
from
all_doctor_api.web2_request
import
web2_request
class
TestArtemisAdPackageorderDetail
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
ADPACKAGEORDERDETAIL
)
adpackageorderdetail_case
,
adpackageorderdetail_data
=
get_ids
(
data
,
"artemis_ad_packageorder_detail"
)
@pytest.mark.parametrize
(
"param"
,
adpackageorderdetail_data
,
ids
=
adpackageorderdetail_case
)
def
test_artemis_ad_packageorder_detail
(
self
,
param
):
'''我的服务订单-已支付广告包'''
r
=
web2_request
()
.
artemis_ad_packageorder_detail
(
param
[
"package_order_id"
])
print
(
r
)
if
r
[
"error"
]
==
0
:
advertise_source
=
r
.
get
(
"data"
)
.
get
(
"info"
)
.
get
(
"advertise_source"
,
[])
#ExtendValue["info"] = json.loads(ExtendValue["info"])
assert
len
(
advertise_source
)
>
param
[
"assert"
]
test_doctor_case/web_case/test_conversation_coupon.py
View file @
aa6c2e58
...
@@ -6,7 +6,7 @@ from in_common.base_request import BaseRequest
...
@@ -6,7 +6,7 @@ from in_common.base_request import BaseRequest
from
all_doctor_api.web_request
import
web_request
from
all_doctor_api.web_request
import
web_request
class
Test
Service
:
class
Test
ConversationCoupon
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONVERSATIONCOUPON
)
data
=
BaseRequest
()
.
api_load
(
path_setting
.
CONVERSATIONCOUPON
)
conversationcoupon_case
,
conversationcoupon_data
=
get_ids
(
data
,
"conversation_coupon"
)
conversationcoupon_case
,
conversationcoupon_data
=
get_ids
(
data
,
"conversation_coupon"
)
...
...
test_doctor_data/web2_data/artemis_ad_packageorder_detail.yaml
0 → 100644
View file @
aa6c2e58
artemis_ad_packageorder_detail
:
#我的服务订单-已支付广告包
-
case
:
"
我的服务订单-已支付广告包"
package_order_id
:
"
685529883901"
assert
:
0
test_doctor_data/web_data/conversation_coupon.yaml
View file @
aa6c2e58
...
@@ -5,7 +5,7 @@ conversation_coupon:
...
@@ -5,7 +5,7 @@ conversation_coupon:
doctor_user_id
:
"
602329"
doctor_user_id
:
"
602329"
assert
:
0
assert
:
0
-
-
case
:
"
点击私信发送优惠券按钮
接口报错
"
case
:
"
点击私信发送优惠券按钮
缺少参数case
"
doctor_user_id
:
"
602329"
doctor_user_id
:
"
602329"
assert
:
0
assert
:
0
assert_message
:
'
缺少参数:
doctor_user_id'
assert_message
:
'
缺少参数:
doctor_user_id'
...
...
test_doctor_data/web_data/conversation_user_id.yaml
View file @
aa6c2e58
...
@@ -10,7 +10,7 @@ conversation_user_id:
...
@@ -10,7 +10,7 @@ conversation_user_id:
assert_message
:
"
消息发送成功"
assert_message
:
"
消息发送成功"
assert_name
:
"
露露2"
assert_name
:
"
露露2"
-
case
:
"
发送失败
"
-
case
:
"
权限校验case:没有权限
"
type
:
0
type
:
0
content
:
您好
content
:
您好
doctor_user_id
:
6023291
doctor_user_id
:
6023291
...
...
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