Commit b24aa8e0 by zhaihuitao

add install enevt

parent e08dfdec
......@@ -24,6 +24,9 @@ prod = {
},
}
headers = {'Content-Type': 'application/json'}
prod_params = {
'androidid': "43214532142142",
'imei': randomUtil.r.randimei(),
......
......@@ -8,10 +8,10 @@
import requests
import json
import unittest
from config.envcfg import prod
from config.envcfg import prod,headers
from config.prod.params import params_install
headers = {'Content-Type': 'application/json'}
#headers = {'Content-Type': 'application/json'}
class installTestCase(unittest.TestCase):
......
......@@ -12,8 +12,6 @@ import requests
from config.envcfg import prod
print(prod['events']['url'])
'''class startupTestCase(unittest.TestCase):
class startupTestCase(unittest.TestCase):
def teststartup(self):
r = requests.post(url=prod['events']['url'] + 'startup', data=s, headers=headers, timeout=10)'''
\ No newline at end of file
r = requests.post(url=prod['events']['url'] + 'startup', data=s, headers=headers, timeout=10)
\ 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