Commit 62d90780 by zhaihuitao

update

parent 892c2b7d
...@@ -17,7 +17,7 @@ url = rc.get("env", "click_url") ...@@ -17,7 +17,7 @@ url = rc.get("env", "click_url")
print(url) print(url)
click_url = 'http://uri6.com/tkio/Er6BFna' click_url = 'http://uri6.com/tkio/fMnmYba'
prod_event_url = 'http://log.trackingio.com' prod_event_url = 'http://log.trackingio.com'
# prod_event_url = 'http://10.3.20.42:8080' # prod_event_url = 'http://10.3.20.42:8080'
test_event_url = 'http://10.3.20.42:8080' test_event_url = 'http://10.3.20.42:8080'
......
...@@ -16,7 +16,7 @@ params_click = { ...@@ -16,7 +16,7 @@ params_click = {
# 'imei': "881554685049", # 'imei': "881554685049",
"idfa": 'DBC43622-E38B-440C-B7A7-FB6641D0D9AB', "idfa": 'DBC43622-E38B-440C-B7A7-FB6641D0D9AB',
'ip': randomUtil.r.randip(), 'ip': randomUtil.r.randip(),
#"idfa": "00000000-0000-0000-0000-000000000000", # "idfa": "00000000-0000-0000-0000-000000000000",
# "idfv": "" # "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", # "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', # 'creativeId':'21321321312123',
......
...@@ -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:37:02</p> <p class='attribute'><strong>开始时间 : </strong> 2020-11-09 15:15:10</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:02.055804</p> <p class='attribute'><strong>合计耗时 : </strong> 0:00:07.359393</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>
...@@ -177,7 +177,7 @@ function html_escape(s) { ...@@ -177,7 +177,7 @@ function html_escape(s) {
<div id='div_pt1_1' class="collapse in"> <div id='div_pt1_1' class="collapse in">
<pre> <pre>
pt1_1: click&lt;!DOCTYPE html&gt; pt1_1: &lt;!DOCTYPE html&gt;
&lt;html&gt; &lt;html&gt;
&lt;head&gt; &lt;head&gt;
...@@ -628,7 +628,7 @@ pt6_1: custom{"status":0} ...@@ -628,7 +628,7 @@ pt6_1: custom{"status":0}
<div id='div_pt7_1' class="collapse in"> <div id='div_pt7_1' class="collapse in">
<pre> <pre>
pt7_1: {"ts":1604903823750,"status":0} pt7_1: {"ts":1604906115600,"status":0}
</pre> </pre>
......
...@@ -21,7 +21,7 @@ class clickTestCase(unittest.TestCase): ...@@ -21,7 +21,7 @@ class clickTestCase(unittest.TestCase):
def testclick(self): def testclick(self):
p = requests.get(url=click_url, params=params_click, timeout=30, verify=False) p = requests.get(url=click_url, params=params_click, timeout=30, verify=False)
# self.assertEqual(p.status_code, 300, msg='接口异常,请检查') # self.assertEqual(p.status_code, 300, msg='接口异常,请检查')
print(p.text) print(p.status_code)
# print(p) # print(p)
# time.sleep(7) # time.sleep(7)
# try: # try:
......
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