Commit b022a77a by zhaihuitao

update

parent 5555efd9
...@@ -123,8 +123,8 @@ function html_escape(s) { ...@@ -123,8 +123,8 @@ function html_escape(s) {
<div class='heading'> <div class='heading'>
<h1 style="font-family: Microsoft YaHei">&lt;TKIO接口监控报告&gt;</h1> <h1 style="font-family: Microsoft YaHei">&lt;TKIO接口监控报告&gt;</h1>
<p class='attribute'><strong>测试人员 : </strong> 翟会涛</p> <p class='attribute'><strong>测试人员 : </strong> 翟会涛</p>
<p class='attribute'><strong>开始时间 : </strong> 2020-11-09 14:31:23</p> <p class='attribute'><strong>开始时间 : </strong> 2020-11-09 14:32:35</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:03.709213</p> <p class='attribute'><strong>合计耗时 : </strong> 0:00:02.898860</p>
<p class='attribute'><strong>测试结果 : </strong> 共 14,通过 14,通过率= 100.00%</p> <p class='attribute'><strong>测试结果 : </strong> 共 14,通过 14,通过率= 100.00%</p>
<p class='description'>TKIO接口自动化测试用例</p> <p class='description'>TKIO接口自动化测试用例</p>
...@@ -208,7 +208,7 @@ pt1_1: 执行结果: ...@@ -208,7 +208,7 @@ pt1_1: 执行结果:
<div id='div_pt2_1' class="collapse in"> <div id='div_pt2_1' class="collapse in">
<pre> <pre>
pt2_1: click{"status":0} pt2_1: click:{"status":0}
</pre> </pre>
...@@ -354,7 +354,7 @@ pt6_1: 自定义{"status":0} ...@@ -354,7 +354,7 @@ pt6_1: 自定义{"status":0}
<div id='div_pt7_1' class="collapse in"> <div id='div_pt7_1' class="collapse in">
<pre> <pre>
pt7_1: {"ts":1604903486117,"status":0} pt7_1: {"ts":1604903557908,"status":0}
</pre> </pre>
......
...@@ -16,7 +16,7 @@ from config.prod.params import params_adshow ...@@ -16,7 +16,7 @@ from config.prod.params import params_adshow
class adshowTestCase(unittest.TestCase): class adshowTestCase(unittest.TestCase):
def testadshow(self): def testadshow(self):
r = requests.post(url=prod_event_url+event_interface["adshow"], data=json.dumps(params_adshow), headers=headers, timeout=5) r = requests.post(url=prod_event_url+event_interface["adshow"], data=json.dumps(params_adshow), headers=headers, timeout=5)
print("\nadshow" + r.text) print("\nadshow:" + r.text)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
\ No newline at end of file
...@@ -16,7 +16,7 @@ from config.prod.params import params_appduration ...@@ -16,7 +16,7 @@ from config.prod.params import params_appduration
class appdurationTestCase(unittest.TestCase): class appdurationTestCase(unittest.TestCase):
def testappduration(self): def testappduration(self):
r = requests.post(url=prod_event_url+event_interface["appduration"], data=json.dumps(params_appduration), headers=headers, timeout=5) r = requests.post(url=prod_event_url+event_interface["appduration"], data=json.dumps(params_appduration), headers=headers, timeout=5)
print("appduration" + r.text) print("appduration:" + r.text)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
\ No newline at end of file
...@@ -17,4 +17,4 @@ from config.prod.params import params_batchUpload ...@@ -17,4 +17,4 @@ from config.prod.params import params_batchUpload
class batchUploadTestCase(unittest.TestCase): class batchUploadTestCase(unittest.TestCase):
def testbatchUpload(self): def testbatchUpload(self):
p = requests.post(url=prod_event_url, data=json.dumps(params_batchUpload), headers=headers, timeout=5) p = requests.post(url=prod_event_url, data=json.dumps(params_batchUpload), headers=headers, timeout=5)
print("自定义" + p.text) print("batch" + p.text)
...@@ -15,7 +15,7 @@ from config.prod.params import params_custom ...@@ -15,7 +15,7 @@ from config.prod.params import params_custom
class customTestCase(unittest.TestCase): class customTestCase(unittest.TestCase):
def testcustom(self): def testcustom(self):
p = requests.post(url=prod_event_url+event_interface["event"], data=json.dumps(params_custom), headers=headers, timeout=5) p = requests.post(url=prod_event_url+event_interface["event"], data=json.dumps(params_custom), headers=headers, timeout=5)
print("自定义" + p.text) print("custom" + p.text)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
\ No newline at end of file
...@@ -20,7 +20,7 @@ sys.path.append(rootPath) ...@@ -20,7 +20,7 @@ sys.path.append(rootPath)
class installTestCase(unittest.TestCase): class installTestCase(unittest.TestCase):
def testinstall(self): def testinstall(self):
r = requests.post(url=prod_event_url+event_interface["install"], data=json.dumps(params_install), headers=headers) r = requests.post(url=prod_event_url+event_interface["install"], data=json.dumps(params_install), headers=headers)
print("\n激活事件执行结果:" + r.text) print("\ninstall:" + r.text)
# print(r.url) # print(r.url)
# self.assertEqual(r.status_code, 200, msg="执行失败,请检查") # self.assertEqual(r.status_code, 200, msg="执行失败,请检查")
......
...@@ -17,7 +17,7 @@ from config.prod.params import params_login ...@@ -17,7 +17,7 @@ from config.prod.params import params_login
class loninTestCase(unittest.TestCase): class loninTestCase(unittest.TestCase):
def testlogin(self): def testlogin(self):
r = requests.post(url=prod_event_url+event_interface["loggedin"], data=json.dumps(params_login), headers=headers, timeout=10) r = requests.post(url=prod_event_url+event_interface["loggedin"], data=json.dumps(params_login), headers=headers, timeout=10)
print("登录" + r.text) print("login" + r.text)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
\ No newline at end of file
...@@ -17,7 +17,7 @@ from config.prod.params import params_pageduration ...@@ -17,7 +17,7 @@ from config.prod.params import params_pageduration
class pagedurationTestCase(unittest.TestCase): class pagedurationTestCase(unittest.TestCase):
def testpageduration(self): def testpageduration(self):
r = requests.post(url=prod_event_url+event_interface["pageduration"], data=json.dumps(params_pageduration), headers=headers, timeout=5) r = requests.post(url=prod_event_url+event_interface["pageduration"], data=json.dumps(params_pageduration), headers=headers, timeout=5)
print("App页面浏览时长分布:" + r.text) print("pageduration:" + r.text)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
\ No newline at end of file
...@@ -16,7 +16,7 @@ from config.prod.params import params_pay ...@@ -16,7 +16,7 @@ from config.prod.params import params_pay
class payTestCase(unittest.TestCase): class payTestCase(unittest.TestCase):
def testpayment(self): def testpayment(self):
r = requests.post(url=prod_event_url+event_interface["payment"], data=json.dumps(params_pay), headers=headers, timeout=5) r = requests.post(url=prod_event_url+event_interface["payment"], data=json.dumps(params_pay), headers=headers, timeout=5)
print("付费" + r.text) print("payment" + r.text)
# print(json.dumps(params_pay)) # print(json.dumps(params_pay))
# print(r) # print(r)
......
...@@ -16,7 +16,7 @@ from config.prod.params import params_payorder ...@@ -16,7 +16,7 @@ from config.prod.params import params_payorder
class payorderTestCase(unittest.TestCase): class payorderTestCase(unittest.TestCase):
def testpayorder(self): def testpayorder(self):
p = requests.post(url=prod_event_url+event_interface["order"], data=json.dumps(params_payorder), headers=headers, timeout=5) p = requests.post(url=prod_event_url+event_interface["order"], data=json.dumps(params_payorder), headers=headers, timeout=5)
print("订单" + p.text) print("payorder" + p.text)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
\ No newline at end of file
...@@ -18,7 +18,7 @@ class registerTestCase(unittest.TestCase): ...@@ -18,7 +18,7 @@ class registerTestCase(unittest.TestCase):
def testregister(self): def testregister(self):
p = requests.post(url=prod_event_url+event_interface["register"], data=json.dumps(params_register), headers=headers, timeout=10) p = requests.post(url=prod_event_url+event_interface["register"], data=json.dumps(params_register), headers=headers, timeout=10)
# print("注册时间戳"+current_time_13) # print("注册时间戳"+current_time_13)
print("注册" + p.text) print("register" + p.text)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
\ No newline at end of file
...@@ -16,7 +16,7 @@ from config.prod.params import params_startup ...@@ -16,7 +16,7 @@ from config.prod.params import params_startup
class startupTestCase(unittest.TestCase): class startupTestCase(unittest.TestCase):
def teststartup(self): def teststartup(self):
r = requests.post(url=prod_event_url+event_interface["startup"], data=json.dumps(params_startup), headers=headers, timeout=10) r = requests.post(url=prod_event_url+event_interface["startup"], data=json.dumps(params_startup), headers=headers, timeout=10)
print('启动'+r.text) print('startup'+r.text)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.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