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
f5dc8483
Commit
f5dc8483
authored
Jun 29, 2022
by
liuxiaoxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增tkio归因脚本
parent
2ff466af
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
18 deletions
+17
-18
android_script.py
android_event/android_script.py
+2
-2
android_fenlianjie.py
android_event_case/android_fenlianjie.py
+3
-3
attributioncase.py
microservices/attributioncase.py
+0
-0
attributioncaseios.py
microservices/attributioncaseios.py
+0
-0
receiveandroid.py
microservices/receiveandroid.py
+4
-6
receiveios.py
microservices/receiveios.py
+3
-3
redirectandroid.py
microservices/redirectandroid.py
+3
-2
redirectios.py
microservices/redirectios.py
+2
-2
No files found.
android_event/android_script.py
View file @
f5dc8483
...
@@ -7,8 +7,8 @@ headers = {'Content-Type': 'application/json', 'X-RY-Access-Token': 'test_access
...
@@ -7,8 +7,8 @@ headers = {'Content-Type': 'application/json', 'X-RY-Access-Token': 'test_access
# 测试环境
# 测试环境
URL_batch
=
'http://10.3.20.42:8080/receive/batch'
URL_batch
=
'http://10.3.20.42:8080/receive/batch'
#
URL = 'http://52.80.137.106:8080/receive/tkio/'
URL
=
'http://52.80.137.106:8080/receive/tkio/'
URL
=
'http://log.trackingio.com/receive/tkio/'
#
URL = 'http://log.trackingio.com/receive/tkio/'
# URL = 'http://jisulog.sortda.com/receive/tkio/'
# URL = 'http://jisulog.sortda.com/receive/tkio/'
# URL = 'http://172.31.21.207:8080/receive/tkio/'
# URL = 'http://172.31.21.207:8080/receive/tkio/'
# URL = 'http://120.53.212.71/receive/tkio/'
# URL = 'http://120.53.212.71/receive/tkio/'
...
...
android_event_case/android_fenlianjie.py
View file @
f5dc8483
...
@@ -8,7 +8,7 @@ import hashlib
...
@@ -8,7 +8,7 @@ import hashlib
#安卓常规渠道激活
#安卓常规渠道激活
appkey
=
'
7f43b32bad452c092096136c9be73d09
'
appkey
=
'
65a61151b2af3ee371ada521a1f9efef
'
# 线上预约app
# 线上预约app
# 7f64fbd64513bc74aa6b5bf753ae0953
# 7f64fbd64513bc74aa6b5bf753ae0953
# 16dc0cb882d3dbec4f7f66251a84d6dd
# 16dc0cb882d3dbec4f7f66251a84d6dd
...
@@ -61,8 +61,8 @@ for index in range(1):
...
@@ -61,8 +61,8 @@ for index in range(1):
# time.sleep(1)
# time.sleep(1)
# num = index + 1
# num = index + 1
# event = 'event_' + str(num)
# event = 'event_' + str(num)
#
event = 'event_30'
event
=
'event_30'
#
allEvent().ziding_event(i, ip, appkey, event)
allEvent
()
.
ziding_event
(
i
,
ip
,
appkey
,
event
)
# print(s)
# print(s)
# s = int(s) + 1
# s = int(s) + 1
# time.sleep(3)
# time.sleep(3)
...
...
microservices/attributioncase.py
View file @
f5dc8483
This diff is collapsed.
Click to expand it.
microservices/attributioncaseios.py
View file @
f5dc8483
This diff is collapsed.
Click to expand it.
microservices/receiveandroid.py
View file @
f5dc8483
...
@@ -46,9 +46,7 @@ global data
...
@@ -46,9 +46,7 @@ global data
data
=
[
data
=
[
{
{
"application_info"
:
{
"application_info"
:
{
# 线上-a8ed96ae9051499fd98bc46ab9c9495c
"appkey"
:
"111"
,
# 测试-decbeb4d840b4bcd1a068ca7233e6ac2
"appkey"
:
"ea5f9f976bc7e58adcb39effc5a405e3"
,
"bundleid"
:
"3423232"
,
"bundleid"
:
"3423232"
,
"app_version"
:
"1.9.0"
,
"app_version"
:
"1.9.0"
,
"channel_name"
:
"HUAWEI"
"channel_name"
:
"HUAWEI"
...
@@ -139,9 +137,9 @@ def send_request():
...
@@ -139,9 +137,9 @@ def send_request():
# 对接se地址
# 对接se地址
# url = 'http://tmtest-se.trackingio.com/receive/tkiov2/sdk'
# url = 'http://tmtest-se.trackingio.com/receive/tkiov2/sdk'
# 测试
# 测试
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'
][
'install_time'
]
=
int
(
round
(
time
.
time
()
*
1000
))
print
(
data
)
print
(
data
)
response
=
requests
.
request
(
"POST"
,
url
,
headers
=
headers
,
data
=
json
.
dumps
(
data
))
response
=
requests
.
request
(
"POST"
,
url
,
headers
=
headers
,
data
=
json
.
dumps
(
data
))
...
@@ -1221,7 +1219,7 @@ def test_event_info():
...
@@ -1221,7 +1219,7 @@ def test_event_info():
assert
response
[
"status"
]
==
"142"
assert
response
[
"status"
]
==
"142"
# e
e
vent_name为空
# event_name为空
def
test_event_info
():
def
test_event_info
():
data
[
0
][
"event_info"
][
'event_name'
]
=
''
data
[
0
][
"event_info"
][
'event_name'
]
=
''
response
=
send_request
()
response
=
send_request
()
...
...
microservices/receiveios.py
View file @
f5dc8483
...
@@ -37,7 +37,7 @@ global data
...
@@ -37,7 +37,7 @@ global data
data
=
[
data
=
[
{
{
"application_info"
:
{
"application_info"
:
{
"appkey"
:
"2
a33891fd3ea53f8edb0fca391a2432e
"
,
"appkey"
:
"2
22
"
,
"bundleid"
:
"3423232"
,
"bundleid"
:
"3423232"
,
"app_version"
:
"1.9.0"
,
"app_version"
:
"1.9.0"
,
"channel_name"
:
"default"
"channel_name"
:
"default"
...
@@ -160,9 +160,9 @@ def send_request():
...
@@ -160,9 +160,9 @@ def send_request():
# 对接se地址
# 对接se地址
# url = 'http://tmtest-se.trackingio.com/receive/tkiov2/sdk'
# url = 'http://tmtest-se.trackingio.com/receive/tkiov2/sdk'
# 测试
# 测试
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'
][
'install_time'
]
=
int
(
round
(
time
.
time
()
*
1000
))
data
[
0
][
'timestamp_info'
][
'current_event_time'
]
=
int
(
round
(
time
.
time
()
*
1000
))
data
[
0
][
'timestamp_info'
][
'current_event_time'
]
=
int
(
round
(
time
.
time
()
*
1000
))
...
...
microservices/redirectandroid.py
View file @
f5dc8483
...
@@ -128,10 +128,11 @@ def send_request2():
...
@@ -128,10 +128,11 @@ def send_request2():
def
send_request3
(
cs
):
def
send_request3
(
cs
):
global
parms
global
parms
# 测试
# 测试
url1
=
'http://tmtest.trackingio.com/receive/turl/QN3eQba'
+
cs
#
url1 = 'http://tmtest.trackingio.com/receive/turl/QN3eQba' + cs
# 线上
# 线上
# url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/MFBfqq
a' + cs
url1
=
'http://tkio-redirect.solar-engine.com/receive/turl/FFNn2a
a'
+
cs
parms
[
'ts'
]
=
int
(
round
(
time
.
time
()
*
1000
))
parms
[
'ts'
]
=
int
(
round
(
time
.
time
()
*
1000
))
parms
[
'ry_touchpoint_ts'
]
=
int
(
round
(
time
.
time
()
*
1000
))
response
=
requests
.
get
(
url
=
url1
,
params
=
parms
,
timeout
=
10
,
verify
=
False
)
response
=
requests
.
get
(
url
=
url1
,
params
=
parms
,
timeout
=
10
,
verify
=
False
)
print
(
response
.
url
)
print
(
response
.
url
)
print
(
response
.
text
)
print
(
response
.
text
)
...
...
microservices/redirectios.py
View file @
f5dc8483
...
@@ -102,9 +102,9 @@ def send_request(cs):
...
@@ -102,9 +102,9 @@ def send_request(cs):
def
send_request3
(
cs
):
def
send_request3
(
cs
):
global
parms
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/qY7fQz
a' + cs
url1
=
'http://tkio-redirect.solar-engine.com/receive/turl/6Z3Yry
a'
+
cs
parms
[
'ts'
]
=
int
(
round
(
time
.
time
()
*
1000
))
parms
[
'ts'
]
=
int
(
round
(
time
.
time
()
*
1000
))
response
=
requests
.
get
(
url
=
url1
,
params
=
parms
,
timeout
=
10
,
verify
=
False
)
response
=
requests
.
get
(
url
=
url1
,
params
=
parms
,
timeout
=
10
,
verify
=
False
)
print
(
response
.
url
)
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