Commit e08dfdec by zhaihuitao

add install enevt

parent bca8ca65
...@@ -47,15 +47,15 @@ params_install = { ...@@ -47,15 +47,15 @@ params_install = {
} }
params_startup = { params_startup = {
# 'what': 'startup', # 'what': 'startup',
'appid': "9b17c1568c3ce34599c5fd2778483ff9", 'appid': "9b17c1568c3ce34599c5fd2778483ff9",
'context': { 'context': {
'_deviceid': i, '_deviceid': "CFFEF74E-B6BF-BD16-E7F8-DFDBFF5FB6E1",
'_imei': i, '_imei': "cffef74e-b6bf-bd16-e7f8-dfdbff5fb6e1",
'_androidid': i, '_androidid': "43214532142142",
'_ip': IP, '_ip': "119.57.108.226",
'_timestamp': current_time_13, '_timestamp': int(round(time.time() * 1000)),
"_lib_version": lv, "_lib_version": "1.5.0",
# "_campaignid": 'default', # "_campaignid": 'default',
# "_deviceid": i, # "_deviceid": i,
# "_imei": i, # "_imei": i,
......
...@@ -7,9 +7,13 @@ ...@@ -7,9 +7,13 @@
""" """
import unittest import unittest
import json
import requests import requests
from common import randomUtil from config.envcfg import prod
class startupTestCase(unittest.TestCase):
print(prod['events']['url'])
'''class startupTestCase(unittest.TestCase):
def teststartup(self): def teststartup(self):
r = requests.post(url=URL + 'startup', data=s, headers=headers, timeout=10) r = requests.post(url=prod['events']['url'] + 'startup', data=s, headers=headers, timeout=10)'''
\ No newline at end of file \ No newline at end of file
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