Commit e936fa10 by zhaihuitao

add install enevt

parent 6b987130
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
@author:zhaiht @author:zhaiht
@file: test_install.py @file: __init__.py.py
@time: 2020/8/11 16:22 @time: 2020/8/17 14:32
@desc: @desc:
""" """
\ No newline at end of file
import unittest
from testcase.android_click.installEvent import allEvent
class installTestCase(unittest.TestCase):
def install(self):
allEvent.installUpload(self)
...@@ -17,7 +17,7 @@ headers = {'Content-Type': 'application/json'} ...@@ -17,7 +17,7 @@ headers = {'Content-Type': 'application/json'}
class installTestCase(unittest.TestCase): class installTestCase(unittest.TestCase):
def testinstall(self): def testinstall(self):
p = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers, timeout=5) p = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers, timeout=5)
print("激活时间执行结果:" + p.text) print("激活事件执行结果:" + p.text)
print(p.url) print(p.url)
self.assertEqual(p.status_code, 200, msg="执行失败,请检查") self.assertEqual(p.status_code, 200, msg="执行失败,请检查")
if __name__ == "__main__": if __name__ == "__main__":
......
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