Commit 6211af47 by liuxiaoxing

微服务测试用例

parent 036d513d
......@@ -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/AVNvuua?noredirect=true'
URL = 'http://10.2.20.42:8083/tkio/faeQZfa?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
......
......@@ -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
......@@ -9,6 +9,7 @@ import time
ip = socket.inet_ntoa(struct.pack('>I', random.randint(1, 0xffffffff)))
# md5加密
def computeMD5(message):
m = hashlib.md5()
......@@ -25,24 +26,24 @@ def computeMD5upper(message):
def idfacode():
ret = ''
a = "".join(random.sample(string.ascii_letters+string.digits, 8))
b = "".join(random.sample(string.ascii_letters+string.digits, 4))
c = "".join(random.sample(string.ascii_letters+string.digits, 4))
d = "".join(random.sample(string.ascii_letters+string.digits, 4))
e = "".join(random.sample(string.ascii_letters+string.digits, 12))
i = (a+"-"+b+"-"+c+"-"+d+"-"+e).upper()
a = "".join(random.sample(string.ascii_letters + string.digits, 8))
b = "".join(random.sample(string.ascii_letters + string.digits, 4))
c = "".join(random.sample(string.ascii_letters + string.digits, 4))
d = "".join(random.sample(string.ascii_letters + string.digits, 4))
e = "".join(random.sample(string.ascii_letters + string.digits, 12))
i = (a + "-" + b + "-" + c + "-" + d + "-" + e).upper()
ret += i
return ret
def idfvcode():
ret = ''
a = "".join(random.sample(string.ascii_letters+string.digits, 8))
b = "".join(random.sample(string.ascii_letters+string.digits, 4))
c = "".join(random.sample(string.ascii_letters+string.digits, 4))
d = "".join(random.sample(string.ascii_letters+string.digits, 4))
e = "".join(random.sample(string.ascii_letters+string.digits, 12))
i = (a+"-"+b+"-"+c+"-"+d+"-"+e).upper()
a = "".join(random.sample(string.ascii_letters + string.digits, 8))
b = "".join(random.sample(string.ascii_letters + string.digits, 4))
c = "".join(random.sample(string.ascii_letters + string.digits, 4))
d = "".join(random.sample(string.ascii_letters + string.digits, 4))
e = "".join(random.sample(string.ascii_letters + string.digits, 12))
i = (a + "-" + b + "-" + c + "-" + d + "-" + e).upper()
ret += i
return ret
......@@ -57,7 +58,8 @@ def test_atb1():
redirectios.parms['idfv'] = v
redirectios.parms['idfv_md5'] = computeMD5(v)
redirectios.parms['ipv4'] = ip
redirectios.parms['ua'] = 'iOS / Chrome 34: Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) CriOS/34.0.1847.18 Mobile/11B554a Safari/9537.53'
redirectios.parms[
'ua'] = 'iOS / Chrome 34: Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) CriOS/34.0.1847.18 Mobile/11B554a Safari/9537.53'
redirectios.send_request3('mURv22a', '')
print(i)
......@@ -76,7 +78,6 @@ def test_atb2():
print(i)
# ------------------------精准归因-----------------
# idfa正常值,idfv为正常值;idfa_md5正常值,idfv_md5为正常值,归因结果为idfa
def test_atb3():
......@@ -104,7 +105,7 @@ def test_atb4():
v = idfvcode()
redirectios.parms['idfa'] = i.lower()
redirectios.parms['idfa_md5'] = ''
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -118,8 +119,6 @@ def test_atb4():
print(i)
# idfa点击为大写,idfa激活为小写,无归因
def test_atb5():
i = idfacode()
......@@ -140,14 +139,13 @@ def test_atb5():
print(i.lower())
# 激活中的idfa_md5与点击中的idfa_md5一致,点击中idfa正常,激活中idfa为空,归因结果为idfa_md5
def test_atb6():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = ''
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -161,7 +159,6 @@ def test_atb6():
print(v)
# 激活中的idfa_md5与点击中的idfa_md5大小写不一致,点击中idfa_md5为小写,激活中idfa_md5为大写,不归因
def test_atb7():
i = idfacode()
......@@ -182,14 +179,13 @@ def test_atb7():
print(v)
# 激活中的idfa_md5与点击中的idfa_md5大小写不一致,点击中idfa_md5为大写,激活中idfa_md5为小写,不归因
def test_atb8():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5upper(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = ''
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -204,14 +200,13 @@ def test_atb8():
print(computeMD5(i))
# idfa点击为小写,iafa激活为大写,idfa_md5点击有值,激活无值,实时侧添加md5加密值,归因方式为idfa_md5
def test_atb9():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i.lower()
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -225,8 +220,6 @@ def test_atb9():
print(i)
# idfa点击为小写,iafa激活为大写,idfa_md5点击有值,激活无值,实时侧添加md5加密值,归因方式为md5
def test_atb31():
i = idfacode()
......@@ -243,10 +236,6 @@ def test_atb31():
print(v)
# -----------------------不可用归因的设备ID无法精准归因----------------------
# 激活数据中的idfa为‘00000000-0000-0000-0000-000000000000’
# idfa_md5为空
......@@ -260,7 +249,7 @@ def test_atb10():
redirectios.parms['idfa'] = '00000000-0000-0000-0000-000000000000'
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip1
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -284,7 +273,7 @@ def test_atb11():
redirectios.parms['idfa'] = ''
redirectios.parms['idfa_md5'] = '9f89c84a559f573636a47ff8daed0d33'
redirectios.parms['ipv4'] = ip1
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = '9f89c84a559f573636a47ff8daed0d33'
......@@ -299,7 +288,6 @@ def test_atb11():
print(v)
# 激活数据中的idfa为全0,idfa_md5为空 ,点击中的idfa为空,idfa_md5为空,无法归因
def test_atb12():
i = idfacode()
......@@ -309,7 +297,7 @@ def test_atb12():
redirectios.parms['idfa'] = ''
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip1
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -324,7 +312,6 @@ def test_atb12():
print(v)
# ----------------------------------概率归因--------------------------
......@@ -343,7 +330,7 @@ def test_atb13():
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip
redirectios.parms['ua'] = ua
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -359,7 +346,6 @@ def test_atb13():
print(v)
# 无可用于归因的设备
# ip相同,ua不同
# 1.ua_click_fp_ipua_switch开启,ua_click_fp_ip_switch开启,归因结果为ipv4
......@@ -375,7 +361,7 @@ def test_atb14():
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip
redirectios.parms['ua'] = ua1
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -391,9 +377,6 @@ def test_atb14():
print(v)
# 无可用于归因的设备
# ip相同,ua相同(点击中的ua为编码后的)
# 1.ua_click_fp_ipua_switch开启,ua_click_fp_ip_switch开启,归因结果为ip_ua
......@@ -406,7 +389,7 @@ def test_atb15():
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip
redirectios.parms['ua'] = ua1
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -434,7 +417,7 @@ def test_atb16():
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip
redirectios.parms['ua'] = ua2
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -450,7 +433,6 @@ def test_atb16():
print(v)
# 无可用于归因的设备
# ip不同,ua相同(激活中的ua为编码后的)
# 1.ua_click_fp_ipua_switch开启,ua_click_fp_ip_switch开启,归因结果自然量
......@@ -464,7 +446,7 @@ def test_atb17():
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip1
redirectios.parms['ua'] = ua2
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -480,8 +462,6 @@ def test_atb17():
print(v)
# -----------------last-click规则验证------------------
# 发送一次点击数据,五分钟后再次发送点击数据,归因到的为第二次的点击
def test_atb18():
......@@ -506,6 +486,7 @@ def test_atb18():
receiveios.send_request()
print(i)
# ----------------------------------ip取值规则-激活----------------------------------
# integration_type为sdk,根据HTTP Header中的IP取值(SDK集成时,报文中也不会有ip传参)
def test_atb19():
......@@ -523,6 +504,7 @@ def test_atb19():
receiveios.send_request()
print(i)
# integration_type为s2s,根据传参中的ipv4进行IP取值
def test_atb20():
i = idfacode()
......@@ -542,8 +524,6 @@ def test_atb20():
print(i)
# ---------------------------激活有效期逻辑---------------------------
# 在激活有效期(104秒)之外:归因上之后,200秒后再次发送点击激活数据,查询归因接口,可再次归因
def test_atb21():
......@@ -585,7 +565,7 @@ def test_atb22():
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -609,7 +589,6 @@ def test_atb22():
print(i)
# 在激活有效期(104秒)之外:归因上之后,200秒后再次发送激活数据,查询归因接口,为自然量
def test_atb23():
i = idfacode()
......@@ -640,7 +619,6 @@ def test_atb23():
print(i)
# ------------------------------------新客获取点击精准归因回溯窗口期------------------------------------
# 点击精准归因回溯窗口期设置为2分钟
# 发送点击,1分钟之后发送激活,可归因上
......@@ -649,7 +627,7 @@ def test_atb24():
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(60)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -663,7 +641,6 @@ def test_atb24():
print(i)
# 点击精准归因回溯窗口期设置为2分钟
# 发送点击,3分钟之后发送激活,无法归因,为自然量
def test_atb25():
......@@ -671,7 +648,7 @@ def test_atb25():
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(180)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -685,7 +662,6 @@ def test_atb25():
print(i)
# ------------------------------------新客获取点击IPUA概率归因回溯窗口期------------------------------------
# IPUA概率归因回溯窗口期设置30秒
# 发送点击,20秒之后发送激活,可归因上
......@@ -697,7 +673,7 @@ def test_atb26():
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip
redirectios.parms['ua'] = ua
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(20)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -713,7 +689,6 @@ def test_atb26():
print(v)
# IPUA概率归因回溯窗口期设置30秒
# 发送点击,35秒之后发送激活,无法归因,为自然量
def test_atb27():
......@@ -724,7 +699,7 @@ def test_atb27():
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip
redirectios.parms['ua'] = ua
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(35)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -752,7 +727,7 @@ def test_atb28():
redirectios.parms['idfa_md5'] = ''
redirectios.parms['ipv4'] = ip
redirectios.parms['ua'] = ua1
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(3)
receiveios.data[0]['device_info']['idfa'] = '00000000-0000-0000-0000-000000000000'
receiveios.data[0]['device_info']['idfa_md5'] = ''
......@@ -768,8 +743,6 @@ def test_atb28():
print(v)
# IPUA概率归因回溯窗口期设置8秒
# 发送点击,10秒之后发送激活,无法归因,为自然量
def test_atb29():
......@@ -797,8 +770,6 @@ def test_atb29():
print(v)
# -------------------------------后续事件归因---------------------------------
# 目前无法验证后续事件是否匹配到了激活,等测试回调时一起测试该功能
# device_id相同-可通过device_id进行关联
......@@ -836,13 +807,14 @@ def test_atb30():
receiveios.send_request()
print(i)
# 归因到渠道的startup
def test_atb31():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -853,9 +825,7 @@ def test_atb31():
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.send_request()
time.sleep(300)
# newList = ['startup', 'register', 'login', 'order', 'purchase',
# 'adimpression', 'adclick']
time.sleep(3)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
......@@ -876,7 +846,7 @@ def test_atb32():
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -887,7 +857,7 @@ def test_atb32():
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.send_request()
time.sleep(300)
time.sleep(3)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
......@@ -908,7 +878,7 @@ def test_atb33():
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -940,7 +910,7 @@ def test_atb34():
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -951,7 +921,7 @@ def test_atb34():
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.send_request()
time.sleep(500)
time.sleep(3)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
......@@ -966,14 +936,13 @@ def test_atb34():
print(i)
# 归因到渠道的purchase
def test_atb35():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -999,15 +968,13 @@ def test_atb35():
print(i)
# 归因到渠道的adimpression
def test_atb36():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -1019,8 +986,6 @@ def test_atb36():
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.send_request()
time.sleep(3)
# newList = ['startup', 'register', 'login', 'order', 'purchase',
# 'adimpression', 'adclick']
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
......@@ -1035,14 +1000,13 @@ def test_atb36():
print(i)
# 归因到渠道的adclick
def test_atb37():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a','')
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
......@@ -1070,16 +1034,13 @@ def test_atb37():
print(i)
# 未配置回调的apkkey
def test_atb38():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mUfU7va','')
redirectios.send_request3('mUfU7va', '')
time.sleep(8)
receiveios.data[0]['application_info']['appkey'] = 'b3beb14b8de6cb5b64650ff8e5983c44'
receiveios.data[0]['device_info']['idfa'] = i
......@@ -1110,3 +1071,98 @@ def test_atb38():
print(i)
# 归因到渠道的startup,点击中的callback_url为空
def test_atb39():
i = idfacode()
v = idfvcode()
redirectios.parms['callback_url'] = ''
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
receiveios.data[0]['device_info']['idfv_md5'] = computeMD5(v)
receiveios.data[0]['device_info']['device_id'] = i
receiveios.data[0]['device_info']['device_id_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.send_request()
time.sleep(3)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
receiveios.data[0]['device_info']['idfv_md5'] = computeMD5(v)
receiveios.data[0]['device_info']['device_id'] = i
receiveios.data[0]['device_info']['device_id_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.data[0]["event_info"]['event_name'] = 'startup'
receiveios.data[0]["event_info"]['event_type'] = 'preset'
receiveios.send_request()
print(i)
# 归因到渠道的startup,点击中的callback_url为空
def test_atb39():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
receiveios.data[0]['device_info']['idfv_md5'] = computeMD5(v)
receiveios.data[0]['device_info']['device_id'] = i
receiveios.data[0]['device_info']['device_id_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.send_request()
time.sleep(3)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
receiveios.data[0]['device_info']['idfv_md5'] = computeMD5(v)
receiveios.data[0]['device_info']['device_id'] = i
receiveios.data[0]['device_info']['device_id_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.data[0]["event_info"]['event_name'] = 'startup'
receiveios.data[0]["event_info"]['event_type'] = 'preset'
receiveios.send_request()
print(i)
# 归因到渠道的自定义事件
def test_atb40():
i = idfacode()
v = idfvcode()
redirectios.parms['idfa'] = i
redirectios.parms['idfa_md5'] = computeMD5(i)
redirectios.send_request3('mURv22a', '')
time.sleep(8)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
receiveios.data[0]['device_info']['idfv_md5'] = computeMD5(v)
receiveios.data[0]['device_info']['device_id'] = i
receiveios.data[0]['device_info']['device_id_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.send_request()
time.sleep(3)
receiveios.data[0]['device_info']['idfa'] = i
receiveios.data[0]['device_info']['idfa_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['idfv'] = v
receiveios.data[0]['device_info']['idfv_md5'] = computeMD5(v)
receiveios.data[0]['device_info']['device_id'] = i
receiveios.data[0]['device_info']['device_id_md5'] = computeMD5(i)
receiveios.data[0]['device_info']['device_id_type'] = 'idfa'
receiveios.data[0]['device_info']['device_id_md5_type'] = 'idfa_md5'
receiveios.data[0]["event_info"]['event_name'] = 'custom_event_101'
receiveios.data[0]["event_info"]['event_type'] = 'custom'
receiveios.send_request()
print(i)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment