Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interfaceTest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
zhaihuitao
interfaceTest
Commits
0546cf68
Commit
0546cf68
authored
Nov 16, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fd981554
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
envcfg.py
config/envcfg.py
+6
-2
result.html
report/result.html
+3
-3
run_all_cases.py
testcase/run_all_cases.py
+2
-1
No files found.
config/envcfg.py
View file @
0546cf68
...
...
@@ -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"
...
...
report/result.html
View file @
0546cf68
...
...
@@ -123,8 +123,8 @@ function html_escape(s) {
<div
class=
'heading'
>
<h1
style=
"font-family: Microsoft YaHei"
>
<
TKIO接口监控报告
>
</h1>
<p
class=
'attribute'
><strong>
测试人员 :
</strong>
翟会涛
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-12 1
0:55:51
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:02.
217408
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-12 1
6: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":16051
49753560
,"status":0}
pt7_1: {"ts":16051
68531619
,"status":0}
</pre>
...
...
testcase/run_all_cases.py
View file @
0546cf68
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment