Commit 0546cf68 by zhaihuitao

update

parent fd981554
......@@ -5,10 +5,14 @@
@time: 2020/8/6 17:34
@desc:
"""
from numpy import long
import os, sys
from common.iniUtil import read_config
import jenkins
server = jenkins.Jenkins('http://127.0.0.1:8080', username='admin', password='reyun.com')
# server.build_job('tkio_interface_test')
print(server.get_job_info('tkio_interface_test'))
# 生产环境:
path = "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/config/setting/config.ini"
......
......@@ -123,8 +123,8 @@ function html_escape(s) {
<div class='heading'>
<h1 style="font-family: Microsoft YaHei">&lt;TKIO接口监控报告&gt;</h1>
<p class='attribute'><strong>测试人员 : </strong> 翟会涛</p>
<p class='attribute'><strong>开始时间 : </strong> 2020-11-12 10:55:51</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:02.217408</p>
<p class='attribute'><strong>开始时间 : </strong> 2020-11-12 16:08:50</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:02.512215</p>
<p class='attribute'><strong>测试结果 : </strong> 共 14,通过 14,通过率= 100.00%</p>
<p class='description'>TKIO接口自动化测试用例</p>
......@@ -352,7 +352,7 @@ pt6_1: custom{"status":0}
<div id='div_pt7_1' class="collapse in">
<pre>
pt7_1: {"ts":1605149753560,"status":0}
pt7_1: {"ts":1605168531619,"status":0}
</pre>
......
......@@ -13,6 +13,7 @@ import sys
import importlib
importlib.reload(sys)
"""解决在Jenkins控制台无法打印中文的问题"""
os.environ['NLS_LANG'] = 'Simplified Chinese_CHINA.ZHS16GBK'
......@@ -42,7 +43,7 @@ if __name__ == "__main__":
)
runner.run(all_case())
"""在控制台打印日志"""
unittest.TextTestRunner(verbosity=1).run(all_case())
unittest.TextTestRunner(verbosity=0).run(all_case())
fp.close()
......
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