Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tkio-test-case
Project
Overview
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
liuxiaoxing
tkio-test-case
Commits
6211af47
Commit
6211af47
authored
Mar 29, 2022
by
liuxiaoxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微服务测试用例
parent
036d513d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
6 deletions
+73
-6
click.py
android_click/click.py
+4
-4
attributioncase.py
microservices/attributioncase.py
+69
-2
attributioncaseios.py
microservices/attributioncaseios.py
+0
-0
No files found.
android_click/click.py
View file @
6211af47
...
...
@@ -27,7 +27,7 @@ ry_adplan_name = '新版测试-计划'
ry_adcreative_name
=
'新版测试创意'
# bytedance_int 今日头条,kuaishou_int 快手,tencentams_int (新)广点通,rryingxiao_int 人人营销
pid
=
'rryingxiao_int'
URL
=
'http://10.2.20.42:8083/tkio/
AVNvuu
a?noredirect=true'
URL
=
'http://10.2.20.42:8083/tkio/
faeQZf
a?noredirect=true'
# 测试头条衍生事件回调时加上
# callback= http%3A%2F%2Fad.toutiao.com%2Ftrack%2Factivate%2F%3Fcallback%3DCKP4rs-Zn4QDEKiQ6teZn4QDGN6L8Y-h9Wcg3ovxj6H1ZyiE0PjgroSEAzAOOM_X-8IDQik0YWY1NzdlOC1lZmViLTRmZDEtYmZkZC00MzE1Zjc1MmJhMGF1NTQ5M0iA0pOtA1AAiAEAkAECmAEA%26os%3D0%26muid%3D
# URL = 'http://uri6.com/adapt/encryp/love.match.set-bytedance?noredirect=true&pid=rryingxiao_int&callback=D8311DBF28D751F327B83F7CEE5B8850B88CC74C8C3FF628EB3A48CAE2212EE260EE347E1771382C5F1B2C0FC9E8921CB5245576D7E5C1EF680315AAA98DCFB189F66FBA49CC7BCB8E4B4726D6D363B816BB2133CADC80B1C12D9FE464A05ED974A70A646BAB1D4D78E2A75361676D5A0D3D4E52B7E7C6B72E9388C17FE9384BE1A47503AABEFB9423727DBAC7B7275AAD237E0E2774D2A8C3D0FDC895CE10C0CCE38F8FEDBC24AF2E23B2B5E742B50C07744361334E148979087917DFFFC445A74B9F939412DEF8D060474E1D353ED7E2EB636B32CADF29842BB90E2131BD3ED05D1A0438EA0EA8577613780B3D64377D85E758A2B20507A034A2C8A96077C7E200C410188C78F76B9B5E7F3E5E4AC3'
...
...
@@ -103,9 +103,9 @@ for index in range(1):
# 'ry_adgroup_name': ry_adgroup_name,
# 'ry_adplan_name': ry_adplan_name,
# 'ry_adcreative_name': ry_adcreative_name,
#
"ry_adgroup_id": ry_adgroup_id,
#
"ry_adplan_id": ry_adplan_id,
#
"ry_adcreative_id": ry_adcreative_id,
"ry_adgroup_id"
:
ry_adgroup_id
,
"ry_adplan_id"
:
ry_adplan_id
,
"ry_adcreative_id"
:
ry_adcreative_id
,
# 'imei2': 'null',
# 'meid': i
# 'bd_vid': i
...
...
microservices/attributioncase.py
View file @
6211af47
...
...
@@ -1018,9 +1018,67 @@ def test_atb43():
print
(
i
)
# b8e5e389e1223ffa16a5a9420258383d 8221(Mintegral)渠道短链:beEJbma 2586(快手)渠道短链: FV73Yra
# 安卓精准归因-oaid归因
def
test_atb44
():
# 安卓精准归因-oaid归因,渠道后续事件
def
test_atb45
():
i
=
code_nums
(
12
)
redirectandroid
.
parms
[
'callback_url'
]
=
'https://www.baidu.com/?tn=98010089_dg&ch=16/'
redirectandroid
.
parms
[
'oaid'
]
=
i
redirectandroid
.
send_request3
(
"FV73Yra"
,
''
)
time
.
sleep
(
5
)
receiveandroid
.
data
[
0
][
'application_info'
][
'appkey'
]
=
'b8e5e389e1223ffa16a5a9420258383d'
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'oaid'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id_type'
]
=
'oaid'
receiveandroid
.
send_request
()
time
.
sleep
(
3
)
receiveandroid
.
data
[
0
][
'application_info'
][
'appkey'
]
=
'b8e5e389e1223ffa16a5a9420258383d'
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'oaid'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id_type'
]
=
'oaid'
receiveandroid
.
data
[
0
][
"event_info"
][
'event_name'
]
=
'startup'
receiveandroid
.
data
[
0
][
"event_info"
][
'event_type'
]
=
'preset'
receiveandroid
.
send_request
()
# time.sleep(3)
# receiveandroid.data[0]['application_info']['appkey'] = 'b8e5e389e1223ffa16a5a9420258383d'
# receiveandroid.data[0]['device_info']['device_id'] = i
# receiveandroid.data[0]['device_info']['oaid'] = i
# receiveandroid.data[0]['device_info']['device_id_type'] = 'oaid'
# receiveandroid.data[0]["event_info"]['event_name'] = 'register'
# receiveandroid.data[0]["event_info"]['event_type'] = 'preset'
# receiveandroid.send_request()
time
.
sleep
(
3
)
receiveandroid
.
data
[
0
][
'application_info'
][
'appkey'
]
=
'b8e5e389e1223ffa16a5a9420258383d'
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'oaid'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id_type'
]
=
'oaid'
receiveandroid
.
data
[
0
][
"event_info"
][
'event_name'
]
=
'purchase'
receiveandroid
.
data
[
0
][
"event_info"
][
'event_type'
]
=
'preset'
receiveandroid
.
send_request
()
# time.sleep(3)
# receiveandroid.data[0]['application_info']['appkey'] = 'b8e5e389e1223ffa16a5a9420258383d'
# receiveandroid.data[0]['device_info']['device_id'] = i
# receiveandroid.data[0]['device_info']['oaid'] = i
# receiveandroid.data[0]['device_info']['device_id_type'] = 'oaid'
# receiveandroid.data[0]["event_info"]['event_name'] = 'custom_event_20'
# receiveandroid.data[0]["event_info"]['event_type'] = 'custom'
# receiveandroid.send_request()
# time.sleep(3)
# receiveandroid.data[0]['application_info']['appkey'] = 'b8e5e389e1223ffa16a5a9420258383d'
# receiveandroid.data[0]['device_info']['device_id'] = i
# receiveandroid.data[0]['device_info']['oaid'] = i
# receiveandroid.data[0]['device_info']['device_id_type'] = 'oaid'
# receiveandroid.data[0]["event_info"]['event_name'] = 'custom_event_99'
# receiveandroid.data[0]["event_info"]['event_type'] = 'custom'
# receiveandroid.send_request()
print
(
i
)
# 安卓精准归因-oaid归因,渠道的event事件
def
test_atb46
():
i
=
code_nums
(
12
)
redirectandroid
.
parms
[
'account_id'
]
=
'123'
redirectandroid
.
parms
[
'oaid'
]
=
i
...
...
@@ -1031,4 +1089,12 @@ def test_atb44():
receiveandroid
.
data
[
0
][
'device_info'
][
'oaid'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id_type'
]
=
'oaid'
receiveandroid
.
send_request
()
time
.
sleep
(
3
)
receiveandroid
.
data
[
0
][
'application_info'
][
'appkey'
]
=
'b8e5e389e1223ffa16a5a9420258383d'
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'oaid'
]
=
i
receiveandroid
.
data
[
0
][
'device_info'
][
'device_id_type'
]
=
'oaid'
receiveandroid
.
data
[
0
][
"event_info"
][
'event_name'
]
=
'custom_event_100'
receiveandroid
.
data
[
0
][
"event_info"
][
'event_type'
]
=
'custom'
receiveandroid
.
send_request
()
print
(
i
)
\ No newline at end of file
microservices/attributioncaseios.py
View file @
6211af47
This diff is collapsed.
Click to expand it.
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