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
09e8ad69
Commit
09e8ad69
authored
Feb 14, 2023
by
liuxiaoxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常迭代
parent
c44dd137
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
107 additions
and
91 deletions
+107
-91
click.py
android_click/click.py
+13
-13
android_script.py
android_event/android_script.py
+2
-2
android_fenlianjie.py
android_event_case/android_fenlianjie.py
+2
-2
receiveandroid.py
microservices/receiveandroid.py
+0
-0
receiveios.py
microservices/receiveios.py
+0
-0
redirectandroid.py
microservices/redirectandroid.py
+2
-2
redirectios.py
microservices/redirectios.py
+2
-2
attributioncaseios.py
tkio/attributioncaseios.py
+16
-0
clickios.py
tkio/clickios.py
+2
-2
x_launch.py
xiaochengxu/x_launch.py
+66
-66
xiaochenxu_script.py
xiaochengxu/xiaochenxu_script.py
+2
-2
No files found.
android_click/click.py
View file @
09e8ad69
...
...
@@ -52,8 +52,8 @@ ry_adplan_name = 'c测试1'
ry_adcreative_name
=
'c测试1'
# bytedance_int 今日头条,kuaishou_int 快手,tencentams_int (新)广点通,rryingxiao_int 人人营销
pid
=
'rryingxiao_int'
URL
=
'http://uri6.com/tkio/aAvmI3a?
noredirect=true'
# URL = 'http://52.80.137.106:8083/tkio/zuAnuq
a?noredirect=true'
# URL = 'http://uri6.com/tkio/ry2MN3a?order_id=987688761&demand_id=987688761&itemid=987688761&
noredirect=true'
URL
=
'http://52.80.137.106:8083/tkio/3Qz2Uf
a?noredirect=true'
# 测试头条衍生事件回调时加上
# callback= http%3A%2F%2Fad.toutiao.com%2Ftrack%2Factivate%2F%3Fcallback%3DCKP4rs-Zn4QDEKiQ6teZn4QDGN6L8Y-h9Wcg3ovxj6H1ZyiE0PjgroSEAzAOOM_X-8IDQik0YWY1NzdlOC1lZmViLTRmZDEtYmZkZC00MzE1Zjc1MmJhMGF1NTQ5M0iA0pOtA1AAiAEAkAECmAEA%26os%3D0%26muid%3D
...
...
@@ -148,9 +148,9 @@ for index in range(1):
"ry_adcreative_id"
:
ry_adcreative_id
,
# "project_id":proiect_id,
# "advert_id":advert_id,
# "project_name": proiect_name,
# "advert_name": advert_name,
# # # # # 账户id
#
#
"project_name": proiect_name,
#
#
"advert_name": advert_name,
# # # # #
#
账户id
"accountid"
:
accountid
,
# 'imei2': 'null',
# 'meid': i
...
...
@@ -217,14 +217,14 @@ for index in range(1):
# print('androidid', a)
w
=
w
+
1
time
.
sleep
(
6
)
try
:
allEvent
()
.
installUpload
(
i
,
ip
,
appkey
)
# allEvent().formevent(i, ip, appkey)
except
Exception
:
print
(
'install_wrong:'
,
w
)
w
=
w
+
1
#
time.sleep(6)
#
try:
#
allEvent().installUpload(i, ip, appkey)
#
# allEvent().formevent(i, ip, appkey)
#
#
except Exception:
#
print('install_wrong:', w)
#
w = w + 1
# # # # #
# # # # #
...
...
android_event/android_script.py
View file @
09e8ad69
...
...
@@ -9,8 +9,8 @@ headers = {'Content-Type': 'application/json', 'X-RY-Access-Token': 'test_access
# 测试环境
URL_batch
=
'http://10.3.20.42:8080/receive/batch'
#
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 @
09e8ad69
...
...
@@ -10,7 +10,7 @@ import hashlib
#安卓常规渠道激活
appkey
=
'
16dc0cb882d3dbec4f7f66251a84d6dd
'
appkey
=
'
7f43b32bad452c092096136c9be73d09
'
# 线上预约app
# 7f64fbd64513bc74aa6b5bf753ae0953
# 16dc0cb882d3dbec4f7f66251a84d6dd
...
...
@@ -30,7 +30,7 @@ appkey = '16dc0cb882d3dbec4f7f66251a84d6dd'
# allEvent().payEvent(i, ip, appkey)
# print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
for
index
in
range
(
3
):
for
index
in
range
(
1
):
# 随机生成12为数组
s
=
''
.
join
(
str
(
random
.
choice
(
range
(
10
)))
for
_
in
range
(
18
))
p
=
''
.
join
(
str
(
random
.
choice
(
range
(
10
)))
for
_
in
range
(
12
))
...
...
microservices/receiveandroid.py
View file @
09e8ad69
This diff is collapsed.
Click to expand it.
microservices/receiveios.py
View file @
09e8ad69
This diff is collapsed.
Click to expand it.
microservices/redirectandroid.py
View file @
09e8ad69
...
...
@@ -144,9 +144,9 @@ def send_request2():
def
send_request3
(
cs
):
global
parms
# 测试
url1
=
'http://tmtest.trackingio.com/receive/turl/myyAJza'
+
cs
#
url1 = 'http://tmtest.trackingio.com/receive/turl/myyAJza' + cs
# 线上
# url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/FFNn2a
a' + cs
url1
=
'http://tkio-redirect.solar-engine.com/receive/turl/aie6vy
a'
+
cs
parms
[
'ts'
]
=
int
(
round
(
time
.
time
()
*
1000
))
# parms['ts'] = int(round(time.time()))
...
...
microservices/redirectios.py
View file @
09e8ad69
...
...
@@ -104,9 +104,9 @@ def send_request(cs):
def
send_request3
(
cs
):
global
parms
# 测试
url1
=
'http://tmtest.trackingio.com/receive/turl/vMjIBza'
+
cs
#
url1 = 'http://tmtest.trackingio.com/receive/turl/vMjIBza' + cs
# 线上
#
url1 = 'http://tkio-redirect.solar-engine.com/receive/turl/6Z3Yrya' + cs
url1
=
'http://tkio-redirect.solar-engine.com/receive/turl/6Z3Yrya'
+
cs
parms
[
'ts'
]
=
int
(
round
(
time
.
time
()
*
1000
))
response
=
requests
.
get
(
url
=
url1
,
params
=
parms
,
timeout
=
10
,
verify
=
False
)
print
(
response
.
url
)
...
...
tkio/attributioncaseios.py
View file @
09e8ad69
...
...
@@ -892,6 +892,22 @@ def test_tapcaid():
# 百度凤巢
def
test_baiducaid
():
i
=
idfacode
()
ip1
=
socket
.
inet_ntoa
(
struct
.
pack
(
'>I'
,
random
.
randint
(
1
,
0xffffffff
)))
clickios
.
parms
[
'idfa'
]
=
i
clickios
.
parms
[
'ip'
]
=
ip1
clickios
.
parms
[
'caid'
]
=
'
%5
B
%7
B
%22
caid
%22%3
A
%5
B
%7
B
%22
caid
%22%3
A
%2200
_B7BCDEBF65DC7891EF044070744B8A66_1DA6AC3170E277A9E76AB0CB4D3E9761
%22%2
C
%22
version
%22%3
A
%2200%22%7
D
%5
D
%2
C
%22
generateTime
%22%3
A
%221675385532%22%2
C
%22
vendor
%22%3
A
%220%22%7
D
%2
C
%7
B
%22
caid
%22%3
A
%5
B
%7
B
%22
caid
%22%3
A
%22
bb789ed6548f50905ffc1957585053f1
%22%2
C
%22
version
%22%3
A
%2220220111%22%7
D
%5
D
%2
C
%22
generateTime
%22%3
A
%221675385532%22%2
C
%22
vendor
%22%3
A
%221%22%7
D
%5
D'
clickios
.
send_requestandroid
(
''
)
print
(
'点击'
)
print
(
i
)
# 点击存储
def
test_at30
():
mget
=
'b21d0385ad8371de9e90b3e969a5d0c6:'
...
...
tkio/clickios.py
View file @
09e8ad69
...
...
@@ -32,8 +32,8 @@ parms = {
def
send_requestandroid
(
hc
):
# url1 = 'http://52.80.137.106:8083/tkio/
zyMRne
a?noredirect=true' + hc
url1
=
'http://uri6.com/tkio/
rUJ3ue
a?noredirect=true'
+
hc
# url1 = 'http://52.80.137.106:8083/tkio/
VFnQFj
a?noredirect=true' + hc
url1
=
'http://uri6.com/tkio/
zArQRz
a?noredirect=true'
+
hc
response
=
requests
.
get
(
url
=
url1
,
params
=
parms
,
timeout
=
10
,
verify
=
False
)
print
(
response
.
text
)
print
(
url1
)
...
...
xiaochengxu/x_launch.py
View file @
09e8ad69
...
...
@@ -5,27 +5,27 @@ import random
import
time
import
requests
appkey
=
'
380292be6ea70e2d44ad466ad77c9d6d
'
appkey
=
'
afbb574bc0e1d7326fc92140399509ef
'
# cid
cid
=
'210
59
'
cid
=
'210
75
'
# surl
surl
=
'
BB7juy
a'
surl
=
'
MNreUf
a'
# URL = 'http://52.80.137.106:8083/tkio/Ur2MFra?noredirect=true&callback=www.baidu.com&request_id=111111&promoted_object_id=111'
URL
=
'http://uri6.com/tkio/Ur2MFra?noredirect=true&callback=www.baidu.com&request_id=111111&promoted_object_id=111'
impressionid
=
''
.
join
(
str
(
random
.
choice
(
range
(
10
)))
for
_
in
range
(
12
))
requestid
=
''
.
join
(
str
(
random
.
choice
(
range
(
10
)))
for
_
in
range
(
12
))
s
=
0
# for index in range(1
):
#
# 随机生成12为数组
#
i = ''.join(str(random.choice(range(10))) for _ in range(28))
# # i = '2539452844786738942022514936
'
#
# 随机生成ip
#
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
#
#
# 打开
# allEvent().openxiaochengxu(i, ip, cid, surl, appkey, impressionid, request
id)
# # # time.sleep(5
)
for
index
in
range
(
5
):
# 随机生成12为数组
#
i = ''.join(str(random.choice(range(10))) for _ in range(28))
i
=
'64532454323234223
'
# 随机生成ip
ip
=
socket
.
inet_ntoa
(
struct
.
pack
(
'>I'
,
random
.
randint
(
1
,
0xffffffff
)))
# 打开
allEvent
()
.
openxiaochengxu
(
i
,
ip
,
cid
,
surl
,
appkey
,
impression
id
)
time
.
sleep
(
2
)
# # # #pv
# # # allEvent().pviaochengxu(i,ip,cid,surl,appkey)
# # # # # #离开
...
...
@@ -42,59 +42,59 @@ s = 0
# allEvent().eventchengxu(i,ip,cid,surl,appkey,event)
for
index
in
range
(
1
):
i
=
''
.
join
(
str
(
random
.
choice
(
range
(
10
)))
for
_
in
range
(
28
))
# i = '1761453021140876860117396099'
# print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
# 随机生成12为数组
# impressionid = ''.join(str(random.choice(range(10))) for _ in range(12))
impressionid
=
'97867544365643'
# requestid = ''.join(str(random.choice(range(10))) for _ in range(12))
requestid
=
'231231232111'
accountid
=
''
.
join
(
str
(
random
.
choice
(
range
(
10
)))
for
_
in
range
(
12
))
# 随机生成ip
ip
=
socket
.
inet_ntoa
(
struct
.
pack
(
'>I'
,
random
.
randint
(
1
,
0xffffffff
)))
# ip = '156.119.456.190'
try
:
parms
=
{
'click_time'
:
str
(
round
(
time
.
time
()
*
1000
)),
# 'click_time': '1667308011000',
# 'wechat_openid': i,
'click_id'
:
'123456789'
,
'accountid'
:
accountid
,
'ip'
:
ip
,
'impression_id'
:
impressionid
,
# 'request_id': requestid,
'_ry_adgroup_id'
:
'222'
,
'_ry_adplan_id'
:
"222"
,
'_ry_adcreative_id'
:
'222'
}
# timeout可以超时四秒
# verify = False
p
=
requests
.
get
(
url
=
URL
,
params
=
parms
,
timeout
=
10
,
verify
=
False
)
print
(
'imei:'
,
i
)
print
(
"ip:"
,
ip
)
# print("accountid:", accountid)
print
(
p
.
text
)
print
(
p
.
url
)
# print("oaid:",o)
print
(
'success:'
,
s
)
print
(
p
.
status_code
)
print
(
p
.
content
)
# print('androidid:',a)
# print(nowTime)
s
=
s
+
1
except
Exception
as
err
:
print
(
err
)
print
(
'wrong:'
,
w
)
print
(
'imei:'
,
i
)
print
(
"ip:"
,
ip
)
# print(p.status_code)
# print('androidid', a)
w
=
w
+
1
#
for index in range(1):
#
i = ''.join(str(random.choice(range(10))) for _ in range(28))
#
# i = '1761453021140876860117396099'
#
#
#
# print("开始时间"+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
#
# 随机生成12为数组
#
# impressionid = ''.join(str(random.choice(range(10))) for _ in range(12))
#
impressionid = '97867544365643'
#
# requestid = ''.join(str(random.choice(range(10))) for _ in range(12))
#
requestid = '231231232111'
#
accountid = ''.join(str(random.choice(range(10))) for _ in range(12))
#
# 随机生成ip
#
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
#
# ip = '156.119.456.190'
#
try:
#
parms = {
#
'click_time': str(round(time.time() * 1000)),
#
# 'click_time': '1667308011000',
#
# 'wechat_openid': i,
#
'click_id':'123456789',
#
'accountid': accountid,
#
'ip': ip,
#
'impression_id': impressionid,
#
# 'request_id': requestid,
#
'_ry_adgroup_id': '222',
#
'_ry_adplan_id': "222",
#
'_ry_adcreative_id': '222'
#
}
#
# timeout可以超时四秒
#
# verify = False
#
p = requests.get(url=URL, params=parms, timeout=10, verify=False)
#
print('imei:', i)
#
#
print("ip:", ip)
#
# print("accountid:", accountid)
#
print(p.text)
#
print(p.url)
#
# print("oaid:",o)
#
print('success:', s)
#
print(p.status_code)
#
print(p.content)
#
# print('androidid:',a)
#
# print(nowTime)
#
s = s + 1
#
except Exception as err:
#
print(err)
#
print('wrong:', w)
#
print('imei:', i)
#
print("ip:", ip)
#
# print(p.status_code)
#
# print('androidid', a)
#
w = w + 1
# time.sleep(2)
# try:
...
...
xiaochengxu/xiaochenxu_script.py
View file @
09e8ad69
...
...
@@ -5,11 +5,11 @@ import random
headers
=
{
'Content-Type'
:
'application/json'
}
# 测试环境
#
URL = 'http://52.80.137.106:8080/receive/tkio/event'
URL
=
'http://52.80.137.106:8080/receive/tkio/event'
# 线上环境
# URL = 'http://tlog.trackingio.com/receive/tkio/event'
URL
=
'http://log.trackingio.com/receive/tkio/event'
#
URL = 'http://log.trackingio.com/receive/tkio/event'
# URL = 'http://jisulog.sortda.com/receive/tkio/event'
# 时间和日期
...
...
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