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
5fa9497a
Commit
5fa9497a
authored
Jun 07, 2022
by
liuxiaoxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tkio地址
parent
4c6eb513
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
49 deletions
+57
-49
click.py
android_click/click.py
+43
-34
android_script.py
android_event/android_script.py
+2
-3
android_fenlianjie.py
android_event_case/android_fenlianjie.py
+1
-1
attributioncaseios.py
microservices/attributioncaseios.py
+3
-3
receiveios.py
microservices/receiveios.py
+6
-6
redirectios.py
microservices/redirectios.py
+2
-2
No files found.
android_click/click.py
View file @
5fa9497a
...
...
@@ -10,15 +10,23 @@ import datetime
# 导入hashlib模块进行md5操作
import
hashlib
# 生成数字组合
n
=
10
def
code_nums2
(
n
=
6
):
ret
=
''
for
i
in
range
(
n
):
num
=
random
.
randint
(
0
,
9
)
s
=
str
(
random
.
choice
([
num
]))
ret
+=
s
return
ret
# from jiami.md5 import get_str_sha1_secret_str
# 向短链发送点击数据
# 广告创意ID
ry_adcreative_id
=
'222'
ry_adcreative_id
=
code_nums2
(
6
)
# 广告组ID
ry_adgroup_id
=
'2222'
ry_adgroup_id
=
code_nums2
(
6
)
# 广告计划ID
ry_adplan_id
=
'22222'
ry_adplan_id
=
code_nums2
(
6
)
# 广告组名称
ry_adgroup_name
=
'c测试1'
# 广告计划名称
...
...
@@ -27,8 +35,8 @@ ry_adplan_name = 'c测试1'
ry_adcreative_name
=
'c测试1'
# bytedance_int 今日头条,kuaishou_int 快手,tencentams_int (新)广点通,rryingxiao_int 人人营销
pid
=
'rryingxiao_int'
URL
=
'http://52.80.137.106:8083/tkio/j2i6re
a?noredirect=true'
# URL = 'http://uri6.com/tkio/VF7bqm
a?noredirect=true'
# URL = 'http://52.80.137.106:8083/tkio/V3Q7bq
a?noredirect=true'
URL
=
'http://uri6.com/tkio/2MRFZr
a?noredirect=true'
# 测试头条衍生事件回调时加上
# callback= http%3A%2F%2Fad.toutiao.com%2Ftrack%2Factivate%2F%3Fcallback%3DCKP4rs-Zn4QDEKiQ6teZn4QDGN6L8Y-h9Wcg3ovxj6H1ZyiE0PjgroSEAzAOOM_X-8IDQik0YWY1NzdlOC1lZmViLTRmZDEtYmZkZC00MzE1Zjc1MmJhMGF1NTQ5M0iA0pOtA1AAiAEAkAECmAEA%26os%3D0%26muid%3D
...
...
@@ -48,7 +56,8 @@ def computeMD5upper(message):
m
.
update
(
message
.
encode
(
encoding
=
'utf-8'
))
return
m
.
hexdigest
()
.
upper
()
appkey
=
'6012db28b7fbdfcb1e3a847756137f9b'
appkey
=
'16dc0cb882d3dbec4f7f66251a84d6dd'
lst
=
[]
nowTime
=
datetime
.
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
s
=
0
...
...
@@ -112,9 +121,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
...
...
@@ -185,8 +194,8 @@ for index in range(1):
except
Exception
:
print
(
'install_wrong:'
,
w
)
w
=
w
+
1
#
#
#
#
#
#
# time.sleep(5)
# try:
# allEvent().registerEvent(i, ip, appkey)
...
...
@@ -222,20 +231,20 @@ for index in range(1):
# # except Exception:
# # print('retention',w)
# # w = w + 1
#
time.sleep(3)
#
try:
#
allEvent().adshow(i, ip, appkey,adid)
#
# allEvent().formevent(i, ip, appkey)
#
except Exception:
#
print('adshow_wrong:', w)
#
w = w + 1
#
time.sleep(3)
#
try:
#
allEvent().adclick(i, ip, appkey, adid)
#
# allEvent().formevent(i, ip, appkey)
#
except Exception:
#
print('adshow_wrong:', w)
#
w = w + 1
time
.
sleep
(
3
)
try
:
allEvent
()
.
adshow
(
i
,
ip
,
appkey
,
adid
)
# allEvent().formevent(i, ip, appkey)
except
Exception
:
print
(
'adshow_wrong:'
,
w
)
w
=
w
+
1
time
.
sleep
(
3
)
try
:
allEvent
()
.
adclick
(
i
,
ip
,
appkey
,
adid
)
# allEvent().formevent(i, ip, appkey)
except
Exception
:
print
(
'adshow_wrong:'
,
w
)
w
=
w
+
1
# time.sleep(5)
# try:
# allEvent().appduration(i, ip, appkey,se)
...
...
@@ -261,14 +270,14 @@ for index in range(1):
# num = index + 1
# event = 'event_' + str(num)
#
event = 'event_1'
#
time.sleep(3)
#
try:
#
allEvent().ziding_event(i, ip, appkey, event)
#
print(event)
#
except Exception as err:
#
print(err)
#
print('自定义_wrong:', w)
event
=
'event_1'
time
.
sleep
(
3
)
try
:
allEvent
()
.
ziding_event
(
i
,
ip
,
appkey
,
event
)
print
(
event
)
except
Exception
as
err
:
print
(
err
)
print
(
'自定义_wrong:'
,
w
)
...
...
android_event/android_script.py
View file @
5fa9497a
...
...
@@ -8,9 +8,8 @@ headers = {'Content-Type': 'application/json', 'X-RY-Access-Token': 'test_access
# 测试环境
URL_batch
=
'http://10.3.20.42:8080/receive/batch'
# URL = 'http://10.2.20.42:8080/receive/tkio/'
URL
=
'http://52.80.137.106:8080/receive/tkio/'
# URL = 'http://log.trackingio.com/receive/tkio/'
# URL = 'http://52.80.137.106:8080/receive/tkio/'
URL
=
'http://log.trackingio.com/receive/tkio/'
# URL = 'http://jisulog.sortda.com/receive/tkio/'
# URL = 'http://172.31.21.207:8080/receive/tkio/'
# URL = 'http://120.53.212.71/receive/tkio/'
...
...
android_event_case/android_fenlianjie.py
View file @
5fa9497a
...
...
@@ -8,7 +8,7 @@ import hashlib
#安卓常规渠道激活
appkey
=
'
ce4d9e34a23b8b63e2ddcf4042a38353
'
appkey
=
'
b7c0146c5b14d7d6d87cfd9bf1853b3e
'
# 线上预约app
# 7f64fbd64513bc74aa6b5bf753ae0953
# 16dc0cb882d3dbec4f7f66251a84d6dd
...
...
microservices/attributioncaseios.py
View file @
5fa9497a
...
...
@@ -1516,7 +1516,7 @@ def test_asa13():
receiveios
.
data
[
0
][
'device_info'
][
'device_id_md5_type'
]
=
'idfa_md5'
receiveios
.
data
[
0
][
'asa_info'
][
'iad_info'
][
'iad-attribution'
]
=
''
receiveios
.
data
[
0
][
'asa_info'
][
'iad_info'
][
'iad-org-id'
]
=
'1234321'
receiveios
.
data
[
0
][
'asa_info'
][
'adservices_info'
][
'token'
]
=
'
zp7pMWgiGBYFBMlDnapwhIbQ+XrVVE6EyqKHE65lU+gu5neKdFMMLAJtbKVkOApFLH2+WfJGvcegSZHFbZUG7OvcIy3rnailWwAAAVADAAAA5wAAAICd0eRQpxLYSWLXJfc03HNmeXSEvChhce94OGxOC5qTb7UiDbZm3I+BjJ98a4vewCHIo17SZhim6bciGmiO+zlU1NZsvXSD7CRx6m1IZS83dw43WtlL6NX8Qnxz1nwDs6zsicXjExypkkuW6OTVRdiKxSGF3qHCYnDrWWCegkMvBQAAABHUGuuCyec0GDWiUgPWlZmQyQAAAJ8B7NluEg5tN2nQ2QaxYzHNPsPyDgYAAACGBQEODofOsdNnP/KS12FHF6TdYpOVBHbNneltC/2Wk/axH5FxnsNeUxidf+aM0e6Qd+GPu+h6PnzYXtxN5UvB3NGFNfux+4nWXWHcKRJrpg/8uUD/2NhzggBarJCt9nKFMEfckXv4gNEuxHKm0jPllU4nGYAOXh5xHQp4yehc/CVrfHm7WeUAAAAAAAAAAAA
AAAAAAAABBEYXAAA='
receiveios
.
data
[
0
][
'asa_info'
][
'adservices_info'
][
'token'
]
=
'
X8RCyiSWbRqrW4Dkgj1PTfAcONQm9pNtegs4Gieca0Mv1Re9V4DDewKoLcbS+Qob7jdZksxyzHkSMA/YW0s0Q96+Q0J73i2RYgAAAVADAAAA5gAAAIAc9XYhkA0EIyeqj7ZEsksLNiqaUTJN8YMn5Iy9EEBJROco1YJDXnxG2obH2awUBC3onAuDqJ/fRp+T8UkFR099mA76p6ZmZ4f0284XnP1ZeeZ5wjre5sawVJ88sG51VdPXeQKxclHn0viLv8U4jtKAbbaueaPx6NjTag1H3PJsvQAAABo7Bo75BPoGIxgOT0Bvp7e5H+qXhYnqHc8SAQAAAJ8Bc3bS2UKQeel68MTBrSJ+Rx7Zn6cAAACGAAIPO3te8WGQZzjpUj1nXRxDYorJNoqYJ6zSZobXAFhkbqKEYzjCOTfDXENyhvyaf0thWkcoyd3KdxuqIgdFmSEW44M9aLzWszyCpSDddyP7m1TIAVl0rrzz3jjSIyvw6VSgFmUN2zRRTLL7JiE+05pLm3wMA/SPZBQ11AkdnuhXHbTyx+Q
AAAAAAAABBEYXAAA='
receiveios
.
send_request
()
print
(
i
)
...
...
@@ -1611,7 +1611,7 @@ def test_asa17():
# 1.iad-attribution=''
# 2.token为正常tkoen(ads归因为true)
# 3.
iad-org-i
d不为1234567890
# 3.
苹果接口返回的orgI
d不为1234567890
# 归因结果为asa激活
def
test_asa18
():
i
=
idfacode
()
...
...
@@ -1627,7 +1627,7 @@ def test_asa18():
receiveios
.
data
[
0
][
'device_info'
][
'device_id_md5_type'
]
=
'idfa_md5'
receiveios
.
data
[
0
][
'asa_info'
][
'iad_info'
][
'iad-attribution'
]
=
''
receiveios
.
data
[
0
][
'asa_info'
][
'iad_info'
][
'iad-org-id'
]
=
'756347876534'
receiveios
.
data
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CFFI8s7ASo0x3xYpXH2lcqc4TcCIpyjd6uld1tQprqmAWTQO9tZPU/H6uvsnP3G+WsGgxTMsMbziFmfTmUeVxiXfuYC0f2iFmOZMu9fhUHEecXkAAAAAAAABBEUL
AAA='
receiveios
.
send_request
()
print
(
i
)
...
...
microservices/receiveios.py
View file @
5fa9497a
...
...
@@ -39,7 +39,7 @@ data = [
"application_info"
:
{
# 线上-
# 测试-
"appkey"
:
"2
a33891fd3ea53f8edb0fca391a2432
e"
,
"appkey"
:
"2
c81418e218b4879b904a45530f0a09
e"
,
"bundleid"
:
"3423232"
,
"app_version"
:
"1.9.0"
,
"channel_name"
:
"default"
...
...
@@ -105,11 +105,11 @@ data = [
"asa_info"
:
{
"iad_info"
:
{
# //iad归因结果。选传,限制16字符内。
"iad-attribution"
:
"
true
"
,
"iad-attribution"
:
""
,
# //iad 活动组名称。选传,限制128字符内。
"iad-org-name"
:
"org name"
,
# //iad 活动组id,选传。限制32字符内。
"iad-org-id"
:
"
40669820
"
,
"iad-org-id"
:
""
,
# //iad 活动id,选传。限制32字符内。
"iad-campaign-id"
:
"542370539"
,
# // iad 活动名称。选传,限制128字符内。
...
...
@@ -146,7 +146,7 @@ data = [
"iad_error_info"
:
"xxx"
},
"adservices_info"
:
{
"token"
:
"
sbBoZZnCpY3Ps32Xv8K5PhyZtPKxB8i/rmjJfWATPQAuqawcQLalTgJ4Zaa4LzZohZK/bWxWg3TmynLv3XKAO+oTbn7FGmSdYAAAAVADAAAA/QAAAIAjeU4Eb6GRAsnafeLL8Ucpfzz5ErqPpxV4n5SoZ6n3q9U8tYixHXKsOcSFnEjBVYNX60xFABXS62TzYQieVzkjt4vjC6GYedWDX+IuYx7K4p6iUvUg5FAhX6kSeVF627i2Xj6Ie5K7Xi3LSM8uNWvADZQESKvdkWF9CQoNY37dEgAAABJfluG0V1jsF3OcqXJPotzTE1YAAACfAe5iGXrTDo893L1XIXjACtCXvdjaAAAAhgAGP0aWIK/sat96xlkNAzEZ8WJd/AGhKQCKZ7dTc+NvyRyic1WsAryc6dkpfhzKUot2l9wrft8I/+dRLggPPFGTTmgdXzaabldMH4iVdaIRDtVQPsxTQw1naa1ainIrehF/VXVsUgngZ0ONhi01Bqw75hq2yuyWRGb1CXkm0dlCtR8L8DVXAAAAAAAAAAAAAAAAAAABBEYXAAA=
"
,
"token"
:
""
,
"adservices_retry_times"
:
3
,
"adservices_error_info"
:
"xxx"
}
...
...
@@ -159,9 +159,9 @@ data_temp = json.dumps(data)
def
send_request
():
global
data
# 测试
url
=
"http://tmtest.trackingio.com/receive/tkiov2/sdk"
#
url = "http://tmtest.trackingio.com/receive/tkiov2/sdk"
# 线上
#
url = "http://tkio-receive.solar-engine.com/receive/tkiov2/sdk"
url
=
"http://tkio-receive.solar-engine.com/receive/tkiov2/sdk"
data
[
0
][
'timestamp_info'
][
'install_time'
]
=
int
(
round
(
time
.
time
()
*
1000
))
data
[
0
][
'timestamp_info'
][
'current_event_time'
]
=
int
(
round
(
time
.
time
()
*
1000
))
...
...
microservices/redirectios.py
View file @
5fa9497a
...
...
@@ -102,9 +102,9 @@ def send_request(cs):
def
send_request3
(
cs
):
global
parms
# 测试
url1
=
'http://tmtest.trackingio.com/receive/turl/I3eYvea'
+
cs
#
url1 = 'http://tmtest.trackingio.com/receive/turl/I3eYvea' + cs
# 线上
# url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/f6F7zi
a' + cs
url1
=
'http://tkio-redirect.solar-engine.com/receive/turl/qY7fQz
a'
+
cs
parms
[
'ts'
]
=
int
(
round
(
time
.
time
()
*
1000
))
response
=
requests
.
get
(
url
=
url1
,
params
=
parms
,
timeout
=
10
,
verify
=
False
)
print
(
response
.
url
)
...
...
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