Commit 3381cabf by zhaihuitao

add install enevt

parent baf374f4
......@@ -10,6 +10,50 @@ import time
from config.envcfg import prod
from common import randomUtil
params_click = {
'androidid': "43214532142142",
'imei': "881554685049",
# "idfa": 'DBC43622-E38B-440C-B7A7-FB6641D0D9AB',
'ip': randomUtil.r.randip(),
#"idfa": "00000000-0000-0000-0000-000000000000",
# "idfv": ""
# "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3",
# 'creativeId':'21321321312123',
# 'requestId':'312321321312',
#'adId': long('21231'),
# '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,
# 'imei2': 'null',
# 'meid': i
# 'bd_vid': i
# 'oaid': "234B9U1T-A274-ED22-CEBF-4B6DDDFC18A9",
# 'muid': "4CF21FBB2FA6CA3D914476954ABBFEBF182BB0BD",
# 'mac': "12321321321321321",
# 'subchannel': '3123123',
# 'aid': '111',
# 'siteid': '222',
# 'csite': '333',
# "timestamp": "1569141628027",
# "creative": "31096865315",
"deviceid": "881554685049",
# "tz": "+8",
# "wx_campaign_id":ry_adgroup_id,
# 'wx_adgroup_id':ry_adplan_id,
# 'ry_adcreative_id':ry_adcreative_id
# "ry_channel_fake": "false",
# "ry_ts": "1569141628025",
# "type": '1222',
# "ctype": '4232323',
# "campaign_id": '123',
# "adgroup_id": '123',
# "creative_id": '123'
}
params_install = {
"what": 'install',
"appid": prod['events']['appkey'],
......@@ -20,8 +64,8 @@ params_install = {
"_model": "test1",
"_pkgname": "com.yanjing.yami",
"_campaignid": 'default',
"_deviceid": randomUtil.r.randimei(),
"_imei": randomUtil.r.randimei(),
"_deviceid": "881554685049",
"_imei": "881554685049",
# "_idfa": 'DBC13622-E34B-440C-B7A7-FB6641D0D9AB',
# "_androidid": "43214532142142",
# "_imei2":"324323AAAA",
......
......@@ -9,7 +9,7 @@
import unittest
from config.envcfg import prod
from common import randomUtil
from config.envcfg import prod_params
from config.prod.params import params_click
import requests
import os
import sys
......@@ -21,7 +21,7 @@ sys.path.append(base_path)
class clickTestCase(unittest.TestCase):
def click(self):
try:
p = requests.get(url=prod['click']['url'], params=prod_params, timeout=30, verify=False)
p = requests.get(url=prod['click']['url'], params=params_click, timeout=30, verify=False)
# self.assertEqual(p.status_code, 200, msg='接口异常,请检查')
print(prod['click']['url'])
print('执行结果:\n=================')
......
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