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
9821e4d3
Commit
9821e4d3
authored
Nov 05, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9fb5e132
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1067 additions
and
345 deletions
+1067
-345
workspace.xml
.idea/workspace.xml
+67
-51
HTMLTestReportCN.py
HTMLTestReportCN.py
+776
-0
result.html
report/result.html
+223
-289
run_all_cases.py
testcase/run_all_cases.py
+1
-5
No files found.
.idea/workspace.xml
View file @
9821e4d3
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"d0064643-2990-4ed3-bfb0-875849b30f4e"
name=
"Default"
comment=
""
>
<list
default=
"true"
id=
"d0064643-2990-4ed3-bfb0-875849b30f4e"
name=
"Default"
comment=
""
>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/HTMLTestReportCN.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/report/result.html"
afterPath=
"$PROJECT_DIR$/report/result.html"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/run_all_cases.py"
afterPath=
"$PROJECT_DIR$/testcase/run_all_cases.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/run_all_cases.py"
afterPath=
"$PROJECT_DIR$/testcase/run_all_cases.py"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
@@ -133,11 +135,19 @@
...
@@ -133,11 +135,19 @@
<file
leaf-file-name=
"run_all_cases.py"
pinned=
"false"
current-in-tab=
"true"
>
<file
leaf-file-name=
"run_all_cases.py"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/run_all_cases.py"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/run_all_cases.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"195"
>
<state
relative-caret-position=
"150"
>
<caret
line=
"13"
column=
"0"
lean-forward=
"true"
selection-start-line=
"13"
selection-start-column=
"0"
selection-end-line=
"13"
selection-end-column=
"0"
/>
<caret
line=
"10"
column=
"0"
lean-forward=
"false"
selection-start-line=
"10"
selection-start-column=
"0"
selection-end-line=
"10"
selection-end-column=
"0"
/>
<folding>
<folding
/>
<element
signature=
"e#105#120#0"
expanded=
"true"
/>
</state>
</folding>
</provider>
</entry>
</file>
<file
leaf-file-name=
"HTMLTestReportCN.py"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/HTMLTestReportCN.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"0"
>
<caret
line=
"0"
column=
"0"
lean-forward=
"false"
selection-start-line=
"0"
selection-start-column=
"0"
selection-end-line=
"0"
selection-end-column=
"0"
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -172,25 +182,6 @@
...
@@ -172,25 +182,6 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"result.html"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/report/result.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"15"
>
<caret
line=
"14"
column=
"0"
lean-forward=
"false"
selection-start-line=
"14"
selection-start-column=
"0"
selection-end-line=
"14"
selection-end-column=
"0"
/>
<folding>
<element
signature=
"e#211#215#0"
expanded=
"true"
/>
<element
signature=
"e#225#229#0"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"e#3653#3657#0"
expanded=
"true"
/>
<element
signature=
"e#3667#3671#0"
expanded=
"true"
/>
<element
signature=
"e#28586#28592#1"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#2;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#span#0;n#a#0;n#div#2;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</leaf>
</component>
</component>
<component
name=
"FileTemplateManagerImpl"
>
<component
name=
"FileTemplateManagerImpl"
>
...
@@ -330,6 +321,34 @@
...
@@ -330,6 +321,34 @@
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH_ELEMENT>
</PATH>
</PATH>
<PATH>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"interfaceTest"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"interfaceTest"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"testcase"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"interfaceTest"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"interfaceTest"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"report"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH>
</subPane>
</subPane>
</pane>
</pane>
</panes>
</panes>
...
@@ -348,6 +367,7 @@
...
@@ -348,6 +367,7 @@
</component>
</component>
<component
name=
"RecentsManager"
>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$"
/>
<recent
name=
"$PROJECT_DIR$/report"
/>
<recent
name=
"$PROJECT_DIR$/report"
/>
</key>
</key>
<key
name=
"MoveFile.RECENT_KEYS"
>
<key
name=
"MoveFile.RECENT_KEYS"
>
...
@@ -637,13 +657,6 @@
...
@@ -637,13 +657,6 @@
<updated>
1596505503233
</updated>
<updated>
1596505503233
</updated>
<workItem
from=
"1596786333197"
duration=
"228000"
/>
<workItem
from=
"1596786333197"
duration=
"228000"
/>
</task>
</task>
<task
id=
"LOCAL-00014"
summary=
"add install enevt"
>
<created>
1597629935877
</created>
<option
name=
"number"
value=
"00014"
/>
<option
name=
"presentableId"
value=
"LOCAL-00014"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1597629935877
</updated>
</task>
<task
id=
"LOCAL-00015"
summary=
"add install enevt"
>
<task
id=
"LOCAL-00015"
summary=
"add install enevt"
>
<created>
1597645810128
</created>
<created>
1597645810128
</created>
<option
name=
"number"
value=
"00015"
/>
<option
name=
"number"
value=
"00015"
/>
...
@@ -980,7 +993,14 @@
...
@@ -980,7 +993,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1604578205908
</updated>
<updated>
1604578205908
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"63"
/>
<task
id=
"LOCAL-00063"
summary=
"update"
>
<created>
1604578554284
</created>
<option
name=
"number"
value=
"00063"
/>
<option
name=
"presentableId"
value=
"LOCAL-00063"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1604578554284
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"64"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TestHistory"
>
<component
name=
"TestHistory"
>
...
@@ -1094,13 +1114,6 @@
...
@@ -1094,13 +1114,6 @@
<watches-manager
/>
<watches-manager
/>
</component>
</component>
<component
name=
"editorHistoryManager"
>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/__init__.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"0"
>
<caret
line=
"0"
column=
"0"
lean-forward=
"false"
selection-start-line=
"0"
selection-start-column=
"0"
selection-end-line=
"0"
selection-end-column=
"0"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/common/test/mysqlTest.py"
>
<entry
file=
"file://$PROJECT_DIR$/common/test/mysqlTest.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"148"
>
<state
relative-caret-position=
"148"
>
...
@@ -1382,9 +1395,6 @@
...
@@ -1382,9 +1395,6 @@
<element
signature=
"n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"e#3653#3657#0"
expanded=
"true"
/>
<element
signature=
"e#3653#3657#0"
expanded=
"true"
/>
<element
signature=
"e#3667#3671#0"
expanded=
"true"
/>
<element
signature=
"e#3667#3671#0"
expanded=
"true"
/>
<element
signature=
"e#28586#28592#1"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#2;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#span#0;n#a#0;n#div#2;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
@@ -1439,7 +1449,15 @@
...
@@ -1439,7 +1449,15 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/report/HTMLTestReportCN.py"
>
<entry
file=
"file:///anaconda3/lib/python3.6/HTMLTestReportCN.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"165"
>
<caret
line=
"11"
column=
"0"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"0"
selection-end-line=
"11"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/HTMLTestReportCN.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"0"
>
<state
relative-caret-position=
"0"
>
<caret
line=
"0"
column=
"0"
lean-forward=
"false"
selection-start-line=
"0"
selection-start-column=
"0"
selection-end-line=
"0"
selection-end-column=
"0"
/>
<caret
line=
"0"
column=
"0"
lean-forward=
"false"
selection-start-line=
"0"
selection-start-column=
"0"
selection-end-line=
"0"
selection-end-column=
"0"
/>
...
@@ -1447,21 +1465,19 @@
...
@@ -1447,21 +1465,19 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://
/anaconda3/lib/python3.6
/HTMLTestReportCN.py"
>
<entry
file=
"file://
$PROJECT_DIR$/report
/HTMLTestReportCN.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
165
"
>
<state
relative-caret-position=
"
0
"
>
<caret
line=
"
11"
column=
"0"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"0"
selection-end-line=
"11
"
selection-end-column=
"0"
/>
<caret
line=
"
0"
column=
"0"
lean-forward=
"false"
selection-start-line=
"0"
selection-start-column=
"0"
selection-end-line=
"0
"
selection-end-column=
"0"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/testcase/run_all_cases.py"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/run_all_cases.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"195"
>
<state
relative-caret-position=
"150"
>
<caret
line=
"13"
column=
"0"
lean-forward=
"true"
selection-start-line=
"13"
selection-start-column=
"0"
selection-end-line=
"13"
selection-end-column=
"0"
/>
<caret
line=
"10"
column=
"0"
lean-forward=
"false"
selection-start-line=
"10"
selection-start-column=
"0"
selection-end-line=
"10"
selection-end-column=
"0"
/>
<folding>
<folding
/>
<element
signature=
"e#105#120#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
...
HTMLTestReportCN.py
0 → 100755
View file @
9821e4d3
#coding=utf-8
"""
A TestRunner for use with the Python unit testing framework. It
generates a HTML report to show the result at a glance.
The simplest way to use this is to invoke its main method. E.g.
import unittest
import HTMLTestRunner
... define your tests ...
if __name__ == '__main__':
HTMLTestRunner.main()
For more customization options, instantiates a HTMLTestRunner object.
HTMLTestRunner is a counterpart to unittest's TextTestRunner. E.g.
# output to a file
fp = file('my_report.html', 'wb')
runner = HTMLTestRunner.HTMLTestRunner(
stream=fp,
title='My unit test',
description='This demonstrates the report output by HTMLTestRunner.'
)
# Use an external stylesheet.
# See the Template_mixin class for more customizable options
runner.STYLESHEET_TMPL = '<link rel="stylesheet" href="my_stylesheet.css" type="text/css">'
# run the test
runner.run(my_test_suite)
------------------------------------------------------------------------
Copyright (c) 2004-2007, Wai Yip Tung
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name Wai Yip Tung nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
# URL: http://tungwaiyip.info/software/HTMLTestRunner.html
__author__
=
"Wai Yip Tung, Findyou"
__version__
=
"0.8.2.2"
"""
Change History
Version 0.8.2.1 -Findyou
* 改为支持python3
Version 0.8.2.1 -Findyou
* 支持中文,汉化
* 调整样式,美化(需要连入网络,使用的百度的Bootstrap.js)
* 增加 通过分类显示、测试人员、通过率的展示
* 优化“详细”与“收起”状态的变换
* 增加返回顶部的锚点
Version 0.8.2
* Show output inline instead of popup window (Viorel Lupu).
Version in 0.8.1
* Validated XHTML (Wolfgang Borgert).
* Added description of test classes and test cases.
Version in 0.8.0
* Define Template_mixin class for customization.
* Workaround a IE 6 bug that it does not treat <script> block as CDATA.
Version in 0.7.1
* Back port to Python 2.3 (Frank Horowitz).
* Fix missing scroll bars in detail log (Podi).
"""
# TODO: color stderr
# TODO: simplify javascript using ,ore than 1 class in the class attribute?
import
datetime
import
io
import
sys
import
time
import
unittest
from
xml.sax
import
saxutils
import
sys
# ------------------------------------------------------------------------
# The redirectors below are used to capture output during testing. Output
# sent to sys.stdout and sys.stderr are automatically captured. However
# in some cases sys.stdout is already cached before HTMLTestRunner is
# invoked (e.g. calling logging.basicConfig). In order to capture those
# output, use the redirectors for the cached stream.
#
# e.g.
# >>> logging.basicConfig(stream=HTMLTestRunner.stdout_redirector)
# >>>
class
OutputRedirector
(
object
):
""" Wrapper to redirect stdout or stderr """
def
__init__
(
self
,
fp
):
self
.
fp
=
fp
def
write
(
self
,
s
):
self
.
fp
.
write
(
s
)
def
writelines
(
self
,
lines
):
self
.
fp
.
writelines
(
lines
)
def
flush
(
self
):
self
.
fp
.
flush
()
stdout_redirector
=
OutputRedirector
(
sys
.
stdout
)
stderr_redirector
=
OutputRedirector
(
sys
.
stderr
)
# ----------------------------------------------------------------------
# Template
class
Template_mixin
(
object
):
"""
Define a HTML template for report customerization and generation.
Overall structure of an HTML report
HTML
+------------------------+
|<html> |
| <head> |
| |
| STYLESHEET |
| +----------------+ |
| | | |
| +----------------+ |
| |
| </head> |
| |
| <body> |
| |
| HEADING |
| +----------------+ |
| | | |
| +----------------+ |
| |
| REPORT |
| +----------------+ |
| | | |
| +----------------+ |
| |
| ENDING |
| +----------------+ |
| | | |
| +----------------+ |
| |
| </body> |
|</html> |
+------------------------+
"""
STATUS
=
{
0
:
'通过'
,
1
:
'失败'
,
2
:
'错误'
,
}
DEFAULT_TITLE
=
'单元测试报告'
DEFAULT_DESCRIPTION
=
''
DEFAULT_TESTER
=
'最棒QA'
# ------------------------------------------------------------------------
# HTML Template
HTML_TMPL
=
r"""<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
%(title)
s</title>
<meta name="generator" content="
%(generator)
s"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
%(stylesheet)
s
</head>
<body >
<script language="javascript" type="text/javascript">
output_list = Array();
/*level 调整增加只显示通过用例的分类 --Findyou
0:Summary //all hiddenRow
1:Failed //pt hiddenRow, ft none
2:Pass //pt none, ft hiddenRow
3:All //pt none, ft none
*/
function showCase(level) {
trs = document.getElementsByTagName("tr");
for (var i = 0; i < trs.length; i++) {
tr = trs[i];
id = tr.id;
if (id.substr(0,2) == 'ft') {
if (level == 2 || level == 0 ) {
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
if (id.substr(0,2) == 'pt') {
if (level < 2) {
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
}
//加入【详细】切换文字变化 --Findyou
detail_class=document.getElementsByClassName('detail');
//console.log(detail_class.length)
if (level == 3) {
for (var i = 0; i < detail_class.length; i++){
detail_class[i].innerHTML="收起"
}
}
else{
for (var i = 0; i < detail_class.length; i++){
detail_class[i].innerHTML="详细"
}
}
}
function showClassDetail(cid, count) {
var id_list = Array(count);
var toHide = 1;
for (var i = 0; i < count; i++) {
//ID修改 点 为 下划线 -Findyou
tid0 = 't' + cid.substr(1) + '_' + (i+1);
tid = 'f' + tid0;
tr = document.getElementById(tid);
if (!tr) {
tid = 'p' + tid0;
tr = document.getElementById(tid);
}
id_list[i] = tid;
if (tr.className) {
toHide = 0;
}
}
for (var i = 0; i < count; i++) {
tid = id_list[i];
//修改点击无法收起的BUG,加入【详细】切换文字变化 --Findyou
if (toHide) {
document.getElementById(tid).className = 'hiddenRow';
document.getElementById(cid).innerText = "详细"
}
else {
document.getElementById(tid).className = '';
document.getElementById(cid).innerText = "收起"
}
}
}
function html_escape(s) {
s = s.replace(/&/g,'&');
s = s.replace(/</g,'<');
s = s.replace(/>/g,'>');
return s;
}
</script>
%(heading)
s
%(report)
s
%(ending)
s
</body>
</html>
"""
# variables: (title, generator, stylesheet, heading, report, ending)
# ------------------------------------------------------------------------
# Stylesheet
#
# alternatively use a <link> for external style sheet, e.g.
# <link rel="stylesheet" href="$url" type="text/css">
STYLESHEET_TMPL
=
"""
<style type="text/css" media="screen">
body { font-family: Microsoft YaHei,Tahoma,arial,helvetica,sans-serif;padding: 20px; font-size: 80
%
; }
table { font-size: 100
%
; }
/* -- heading ---------------------------------------------------------------------- */
.heading {
margin-top: 0ex;
margin-bottom: 1ex;
}
.heading .description {
margin-top: 4ex;
margin-bottom: 6ex;
}
/* -- report ------------------------------------------------------------------------ */
#total_row { font-weight: bold; }
.passCase { color: #5cb85c; }
.failCase { color: #d9534f; font-weight: bold; }
.errorCase { color: #f0ad4e; font-weight: bold; }
.hiddenRow { display: none; }
.testcase { margin-left: 2em; }
</style>
"""
# ------------------------------------------------------------------------
# Heading
#
HEADING_TMPL
=
"""<div class='heading'>
<h1 style="font-family: Microsoft YaHei">
%(title)
s</h1>
%(parameters)
s
<p class='description'>
%(description)
s</p>
</div>
"""
# variables: (title, parameters, description)
HEADING_ATTRIBUTE_TMPL
=
"""<p class='attribute'><strong>
%(name)
s : </strong>
%(value)
s</p>
"""
# variables: (name, value)
# ------------------------------------------------------------------------
# Report
#
# 汉化,加美化效果 --Findyou
REPORT_TMPL
=
"""
<p id='show_detail_line'>
<a class="btn btn-primary" href='javascript:showCase(0)'>概要{
%(passrate)
s }</a>
<a class="btn btn-danger" href='javascript:showCase(1)'>失败{
%(fail)
s }</a>
<a class="btn btn-success" href='javascript:showCase(2)'>通过{
%(Pass)
s }</a>
<a class="btn btn-info" href='javascript:showCase(3)'>所有{
%(count)
s }</a>
</p>
<table id='result_table' class="table table-condensed table-bordered table-hover">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row' class="text-center success" style="font-weight: bold;font-size: 14px;">
<td>用例集/测试用例</td>
<td>总计</td>
<td>通过</td>
<td>失败</td>
<td>错误</td>
<td>详细</td>
</tr>
%(test_list)
s
<tr id='total_row' class="text-center active">
<td>总计</td>
<td>
%(count)
s</td>
<td>
%(Pass)
s</td>
<td>
%(fail)
s</td>
<td>
%(error)
s</td>
<td>通过率:
%(passrate)
s</td>
</tr>
</table>
"""
# variables: (test_list, count, Pass, fail, error ,passrate)
REPORT_CLASS_TMPL
=
r"""
<tr class='
%(style)
s warning'>
<td>
%(desc)
s</td>
<td class="text-center">
%(count)
s</td>
<td class="text-center">
%(Pass)
s</td>
<td class="text-center">
%(fail)
s</td>
<td class="text-center">
%(error)
s</td>
<td class="text-center"><a href="javascript:showClassDetail('
%(cid)
s',
%(count)
s)" class="detail" id='
%(cid)
s'>详细</a></td>
</tr>
"""
# variables: (style, desc, count, Pass, fail, error, cid)
#失败 的样式,去掉原来JS效果,美化展示效果 -Findyou
REPORT_TEST_WITH_OUTPUT_TMPL
=
r"""
<tr id='
%(tid)
s' class='
%(Class)
s'>
<td class='
%(style)
s'><div class='testcase'>
%(desc)
s</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_
%(tid)
s' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_
%(tid)
s'>
%(status)
s</button>
<div id='div_
%(tid)
s' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_
%(tid)
s' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_
%(tid)
s'>
%(status)
s</button>
<div id='div_
%(tid)
s' class="collapse in">
<pre>
%(script)
s
</pre>
</div>
</td>
</tr>
"""
# variables: (tid, Class, style, desc, status)
# 通过 的样式,加标签效果 -Findyou
REPORT_TEST_NO_OUTPUT_TMPL
=
r"""
<tr id='
%(tid)
s' class='
%(Class)
s'>
<td class='
%(style)
s'><div class='testcase'>
%(desc)
s</div></td>
<td colspan='5' align='center'><span class="label label-success success">
%(status)
s</span></td>
</tr>
"""
# variables: (tid, Class, style, desc, status)
REPORT_TEST_OUTPUT_TMPL
=
r"""
%(id)
s:
%(output)
s
"""
# variables: (id, output)
# ------------------------------------------------------------------------
# ENDING
#
# 增加返回顶部按钮 --Findyou
ENDING_TMPL
=
"""<div id='ending'> </div>
<div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
<a href="#"><span class="glyphicon glyphicon-eject" style = "font-size:30px;" aria-hidden="true">
</span></a></div>
"""
# -------------------- The end of the Template class -------------------
TestResult
=
unittest
.
TestResult
class
_TestResult
(
TestResult
):
# note: _TestResult is a pure representation of results.
# It lacks the output and reporting ability compares to unittest._TextTestResult.
def
__init__
(
self
,
verbosity
=
1
):
TestResult
.
__init__
(
self
)
self
.
stdout0
=
None
self
.
stderr0
=
None
self
.
success_count
=
0
self
.
failure_count
=
0
self
.
error_count
=
0
self
.
verbosity
=
verbosity
# result is a list of result in 4 tuple
# (
# result code (0: success; 1: fail; 2: error),
# TestCase object,
# Test output (byte string),
# stack trace,
# )
self
.
result
=
[]
#增加一个测试通过率 --Findyou
self
.
passrate
=
float
(
0
)
def
startTest
(
self
,
test
):
TestResult
.
startTest
(
self
,
test
)
# just one buffer for both stdout and stderr
self
.
outputBuffer
=
io
.
StringIO
()
stdout_redirector
.
fp
=
self
.
outputBuffer
stderr_redirector
.
fp
=
self
.
outputBuffer
self
.
stdout0
=
sys
.
stdout
self
.
stderr0
=
sys
.
stderr
sys
.
stdout
=
stdout_redirector
sys
.
stderr
=
stderr_redirector
def
complete_output
(
self
):
"""
Disconnect output redirection and return buffer.
Safe to call multiple times.
"""
if
self
.
stdout0
:
sys
.
stdout
=
self
.
stdout0
sys
.
stderr
=
self
.
stderr0
self
.
stdout0
=
None
self
.
stderr0
=
None
return
self
.
outputBuffer
.
getvalue
()
def
stopTest
(
self
,
test
):
# Usually one of addSuccess, addError or addFailure would have been called.
# But there are some path in unittest that would bypass this.
# We must disconnect stdout in stopTest(), which is guaranteed to be called.
self
.
complete_output
()
def
addSuccess
(
self
,
test
):
self
.
success_count
+=
1
TestResult
.
addSuccess
(
self
,
test
)
output
=
self
.
complete_output
()
self
.
result
.
append
((
0
,
test
,
output
,
''
))
if
self
.
verbosity
>
1
:
sys
.
stderr
.
write
(
'ok '
)
sys
.
stderr
.
write
(
str
(
test
))
sys
.
stderr
.
write
(
'
\n
'
)
else
:
sys
.
stderr
.
write
(
'.'
)
def
addError
(
self
,
test
,
err
):
self
.
error_count
+=
1
TestResult
.
addError
(
self
,
test
,
err
)
_
,
_exc_str
=
self
.
errors
[
-
1
]
output
=
self
.
complete_output
()
self
.
result
.
append
((
2
,
test
,
output
,
_exc_str
))
if
self
.
verbosity
>
1
:
sys
.
stderr
.
write
(
'E '
)
sys
.
stderr
.
write
(
str
(
test
))
sys
.
stderr
.
write
(
'
\n
'
)
else
:
sys
.
stderr
.
write
(
'E'
)
def
addFailure
(
self
,
test
,
err
):
self
.
failure_count
+=
1
TestResult
.
addFailure
(
self
,
test
,
err
)
_
,
_exc_str
=
self
.
failures
[
-
1
]
output
=
self
.
complete_output
()
self
.
result
.
append
((
1
,
test
,
output
,
_exc_str
))
if
self
.
verbosity
>
1
:
sys
.
stderr
.
write
(
'F '
)
sys
.
stderr
.
write
(
str
(
test
))
sys
.
stderr
.
write
(
'
\n
'
)
else
:
sys
.
stderr
.
write
(
'F'
)
class
HTMLTestRunner
(
Template_mixin
):
"""
"""
def
__init__
(
self
,
stream
=
sys
.
stdout
,
verbosity
=
1
,
title
=
None
,
description
=
None
,
tester
=
None
):
self
.
stream
=
stream
self
.
verbosity
=
verbosity
if
title
is
None
:
self
.
title
=
self
.
DEFAULT_TITLE
else
:
self
.
title
=
title
if
description
is
None
:
self
.
description
=
self
.
DEFAULT_DESCRIPTION
else
:
self
.
description
=
description
if
tester
is
None
:
self
.
tester
=
self
.
DEFAULT_TESTER
else
:
self
.
tester
=
tester
self
.
startTime
=
datetime
.
datetime
.
now
()
def
run
(
self
,
test
):
"Run the given test case or test suite."
result
=
_TestResult
(
self
.
verbosity
)
test
(
result
)
self
.
stopTime
=
datetime
.
datetime
.
now
()
self
.
generateReport
(
test
,
result
)
print
(
'
\n
Time Elapsed:
%
s'
%
(
self
.
stopTime
-
self
.
startTime
),
file
=
sys
.
stderr
)
return
result
def
sortResult
(
self
,
result_list
):
# unittest does not seems to run in any particular order.
# Here at least we want to group them together by class.
rmap
=
{}
classes
=
[]
for
n
,
t
,
o
,
e
in
result_list
:
cls
=
t
.
__class__
if
cls
not
in
rmap
:
rmap
[
cls
]
=
[]
classes
.
append
(
cls
)
rmap
[
cls
]
.
append
((
n
,
t
,
o
,
e
))
r
=
[(
cls
,
rmap
[
cls
])
for
cls
in
classes
]
return
r
#替换测试结果status为通过率 --Findyou
def
getReportAttributes
(
self
,
result
):
"""
Return report attributes as a list of (name, value).
Override this to add custom attributes.
"""
startTime
=
str
(
self
.
startTime
)[:
19
]
duration
=
str
(
self
.
stopTime
-
self
.
startTime
)
status
=
[]
status
.
append
(
'共
%
s'
%
(
result
.
success_count
+
result
.
failure_count
+
result
.
error_count
))
if
result
.
success_count
:
status
.
append
(
'通过
%
s'
%
result
.
success_count
)
if
result
.
failure_count
:
status
.
append
(
'失败
%
s'
%
result
.
failure_count
)
if
result
.
error_count
:
status
.
append
(
'错误
%
s'
%
result
.
error_count
)
if
status
:
status
=
','
.
join
(
status
)
self
.
passrate
=
str
(
"
%.2
f
%%
"
%
(
float
(
result
.
success_count
)
/
float
(
result
.
success_count
+
result
.
failure_count
+
result
.
error_count
)
*
100
))
else
:
status
=
'none'
return
[
(
'测试人员'
,
self
.
tester
),
(
'开始时间'
,
startTime
),
(
'合计耗时'
,
duration
),
(
'测试结果'
,
status
+
",通过率= "
+
self
.
passrate
),
]
def
generateReport
(
self
,
test
,
result
):
report_attrs
=
self
.
getReportAttributes
(
result
)
generator
=
'HTMLTestRunner
%
s'
%
__version__
stylesheet
=
self
.
_generate_stylesheet
()
heading
=
self
.
_generate_heading
(
report_attrs
)
report
=
self
.
_generate_report
(
result
)
ending
=
self
.
_generate_ending
()
output
=
self
.
HTML_TMPL
%
dict
(
title
=
saxutils
.
escape
(
self
.
title
),
generator
=
generator
,
stylesheet
=
stylesheet
,
heading
=
heading
,
report
=
report
,
ending
=
ending
,
)
self
.
stream
.
write
(
output
.
encode
(
'utf8'
))
def
_generate_stylesheet
(
self
):
return
self
.
STYLESHEET_TMPL
#增加Tester显示 -Findyou
def
_generate_heading
(
self
,
report_attrs
):
a_lines
=
[]
for
name
,
value
in
report_attrs
:
line
=
self
.
HEADING_ATTRIBUTE_TMPL
%
dict
(
name
=
saxutils
.
escape
(
name
),
value
=
saxutils
.
escape
(
value
),
)
a_lines
.
append
(
line
)
heading
=
self
.
HEADING_TMPL
%
dict
(
title
=
saxutils
.
escape
(
self
.
title
),
parameters
=
''
.
join
(
a_lines
),
description
=
saxutils
.
escape
(
self
.
description
),
tester
=
saxutils
.
escape
(
self
.
tester
),
)
return
heading
#生成报告 --Findyou添加注释
def
_generate_report
(
self
,
result
):
rows
=
[]
sortedResult
=
self
.
sortResult
(
result
.
result
)
for
cid
,
(
cls
,
cls_results
)
in
enumerate
(
sortedResult
):
# subtotal for a class
np
=
nf
=
ne
=
0
for
n
,
t
,
o
,
e
in
cls_results
:
if
n
==
0
:
np
+=
1
elif
n
==
1
:
nf
+=
1
else
:
ne
+=
1
# format class description
if
cls
.
__module__
==
"__main__"
:
name
=
cls
.
__name__
else
:
name
=
"
%
s.
%
s"
%
(
cls
.
__module__
,
cls
.
__name__
)
doc
=
cls
.
__doc__
and
cls
.
__doc__
.
split
(
"
\n
"
)[
0
]
or
""
desc
=
doc
and
'
%
s:
%
s'
%
(
name
,
doc
)
or
name
row
=
self
.
REPORT_CLASS_TMPL
%
dict
(
style
=
ne
>
0
and
'errorClass'
or
nf
>
0
and
'failClass'
or
'passClass'
,
desc
=
desc
,
count
=
np
+
nf
+
ne
,
Pass
=
np
,
fail
=
nf
,
error
=
ne
,
cid
=
'c
%
s'
%
(
cid
+
1
),
)
rows
.
append
(
row
)
for
tid
,
(
n
,
t
,
o
,
e
)
in
enumerate
(
cls_results
):
self
.
_generate_report_test
(
rows
,
cid
,
tid
,
n
,
t
,
o
,
e
)
report
=
self
.
REPORT_TMPL
%
dict
(
test_list
=
''
.
join
(
rows
),
count
=
str
(
result
.
success_count
+
result
.
failure_count
+
result
.
error_count
),
Pass
=
str
(
result
.
success_count
),
fail
=
str
(
result
.
failure_count
),
error
=
str
(
result
.
error_count
),
passrate
=
self
.
passrate
,
)
return
report
def
_generate_report_test
(
self
,
rows
,
cid
,
tid
,
n
,
t
,
o
,
e
):
# e.g. 'pt1.1', 'ft1.1', etc
has_output
=
bool
(
o
or
e
)
# ID修改点为下划线,支持Bootstrap折叠展开特效 - Findyou
tid
=
(
n
==
0
and
'p'
or
'f'
)
+
't
%
s_
%
s'
%
(
cid
+
1
,
tid
+
1
)
name
=
t
.
id
()
.
split
(
'.'
)[
-
1
]
doc
=
t
.
shortDescription
()
or
""
desc
=
doc
and
(
'
%
s:
%
s'
%
(
name
,
doc
))
or
name
tmpl
=
has_output
and
self
.
REPORT_TEST_WITH_OUTPUT_TMPL
or
self
.
REPORT_TEST_NO_OUTPUT_TMPL
# utf-8 支持中文 - Findyou
# o and e should be byte string because they are collected from stdout and stderr?
if
isinstance
(
o
,
str
):
# TODO: some problem with 'string_escape': it escape \n and mess up formating
# uo = unicode(o.encode('string_escape'))
# uo = o.decode('latin-1')
uo
=
o
else
:
uo
=
o
if
isinstance
(
e
,
str
):
# TODO: some problem with 'string_escape': it escape \n and mess up formating
# ue = unicode(e.encode('string_escape'))
# ue = e.decode('latin-1')
ue
=
e
else
:
ue
=
e
script
=
self
.
REPORT_TEST_OUTPUT_TMPL
%
dict
(
id
=
tid
,
output
=
saxutils
.
escape
(
uo
+
ue
),
)
row
=
tmpl
%
dict
(
tid
=
tid
,
Class
=
(
n
==
0
and
'hiddenRow'
or
'none'
),
style
=
n
==
2
and
'errorCase'
or
(
n
==
1
and
'failCase'
or
'passCase'
),
desc
=
desc
,
script
=
script
,
status
=
self
.
STATUS
[
n
],
)
rows
.
append
(
row
)
if
not
has_output
:
return
def
_generate_ending
(
self
):
return
self
.
ENDING_TMPL
##############################################################################
# Facilities for running tests from the command line
##############################################################################
# Note: Reuse unittest.TestProgram to launch test. In the future we may
# build our own launcher to support more specific command line
# parameters like test title, CSS, etc.
class
TestProgram
(
unittest
.
TestProgram
):
"""
A variation of the unittest.TestProgram. Please refer to the base
class for command line parameters.
"""
def
runTests
(
self
):
# Pick HTMLTestRunner as the default test runner.
# base class's testRunner parameter is not useful because it means
# we have to instantiate HTMLTestRunner before we know self.verbosity.
if
self
.
testRunner
is
None
:
self
.
testRunner
=
HTMLTestRunner
(
verbosity
=
self
.
verbosity
)
unittest
.
TestProgram
.
runTests
(
self
)
main
=
TestProgram
##############################################################################
# Executing this module from the command line
##############################################################################
if
__name__
==
"__main__"
:
main
(
module
=
None
)
report/result.html
View file @
9821e4d3
...
@@ -123,9 +123,9 @@ function html_escape(s) {
...
@@ -123,9 +123,9 @@ function html_escape(s) {
<div
class=
'heading'
>
<div
class=
'heading'
>
<h1
style=
"font-family: Microsoft YaHei"
>
<
TKIO接口监控报告
>
</h1>
<h1
style=
"font-family: Microsoft YaHei"
>
<
TKIO接口监控报告
>
</h1>
<p
class=
'attribute'
><strong>
测试人员 :
</strong>
翟会涛
</p>
<p
class=
'attribute'
><strong>
测试人员 :
</strong>
翟会涛
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-0
4 11:26:56
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-0
5 20:20:07
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
2.470576
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
0.391475
</p>
<p
class=
'attribute'
><strong>
测试结果 :
</strong>
共 14,通过 1
3,错误 1,通过率= 92.86
%
</p>
<p
class=
'attribute'
><strong>
测试结果 :
</strong>
共 14,通过 1
,错误 13,通过率= 7.14
%
</p>
<p
class=
'description'
>
TKIO接口自动化测试用例
</p>
<p
class=
'description'
>
TKIO接口自动化测试用例
</p>
</div>
</div>
...
@@ -133,9 +133,9 @@ function html_escape(s) {
...
@@ -133,9 +133,9 @@ function html_escape(s) {
<p
id=
'show_detail_line'
>
<p
id=
'show_detail_line'
>
<a
class=
"btn btn-primary"
href=
'javascript:showCase(0)'
>
概要{
92.86
% }
</a>
<a
class=
"btn btn-primary"
href=
'javascript:showCase(0)'
>
概要{
7.14
% }
</a>
<a
class=
"btn btn-danger"
href=
'javascript:showCase(1)'
>
失败{ 0 }
</a>
<a
class=
"btn btn-danger"
href=
'javascript:showCase(1)'
>
失败{ 0 }
</a>
<a
class=
"btn btn-success"
href=
'javascript:showCase(2)'
>
通过{ 1
3
}
</a>
<a
class=
"btn btn-success"
href=
'javascript:showCase(2)'
>
通过{ 1 }
</a>
<a
class=
"btn btn-info"
href=
'javascript:showCase(3)'
>
所有{ 14 }
</a>
<a
class=
"btn btn-info"
href=
'javascript:showCase(3)'
>
所有{ 14 }
</a>
</p>
</p>
<table
id=
'result_table'
class=
"table table-condensed table-bordered table-hover"
>
<table
id=
'result_table'
class=
"table table-condensed table-bordered table-hover"
>
...
@@ -157,16 +157,16 @@ function html_escape(s) {
...
@@ -157,16 +157,16 @@ function html_escape(s) {
</tr>
</tr>
<tr
class=
'errorClass warning'
>
<tr
class=
'errorClass warning'
>
<td>
android_click.test_click.clickTestCase
</td>
<td>
unittest.loader._FailedTest
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
3
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
3
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c1',1)"
class=
"detail"
id=
'c1'
>
详细
</a></td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c1',1
3
)"
class=
"detail"
id=
'c1'
>
详细
</a></td>
</tr>
</tr>
<tr
id=
'ft1_1'
class=
'none'
>
<tr
id=
'ft1_1'
class=
'none'
>
<td
class=
'errorCase'
><div
class=
'testcase'
>
testclick
</div></td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test
_
click
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_1'>错误</button>
<button id='btn_ft1_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_1'>错误</button>
...
@@ -177,80 +177,16 @@ function html_escape(s) {
...
@@ -177,80 +177,16 @@ function html_escape(s) {
<div
id=
'div_ft1_1'
class=
"collapse in"
>
<div
id=
'div_ft1_1'
class=
"collapse in"
>
<pre>
<pre>
ft1_1: /anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
ft1_1: ImportError: Failed to import test module: android_click.test_click
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/anaconda3/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Traceback (most recent call last):
Traceback (most recent call last):
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_click/test_click.py", line 22, in testclick
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
p = requests.get(url=click_url, params=params_click, timeout=30, verify=False)
module = self._get_module_from_name(name)
File "/anaconda3/lib/python3.6/site-packages/requests/api.py", line 72, in get
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
return request('get', url, params=params, **kwargs)
__import__(name)
File "/anaconda3/lib/python3.6/site-packages/requests/api.py", line 58, in request
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_click/test_click.py", line 10, in
<
module
>
return session.request(method=method, url=url, **kwargs)
from config.envcfg import click_url
File "/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
ModuleNotFoundError: No module named 'config'
resp = self.send(prep, **send_kwargs)
File "/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 640, in send
history = [resp for resp in gen] if allow_redirects else []
File "/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 640, in
<
listcomp
>
history = [resp for resp in gen] if allow_redirects else []
File "/anaconda3/lib/python3.6/site-packages/requests/sessions.py", line 140, in resolve_redirects
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
</pre>
</pre>
...
@@ -258,28 +194,28 @@ requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
...
@@ -258,28 +194,28 @@ requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_2'
class=
'none'
>
<td>
android_events.test_adclick.adclickTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_adclick
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c2',1)"
class=
"detail"
id=
'c2'
>
详细
</a></td>
</tr>
<tr
id=
'pt2_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testadclick
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt2_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt2_1'>通过
</button>
<button id='btn_
ft1_2' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_2'>错误
</button>
<div id='div_
pt2_1
' class="collapse"> -->
<div id='div_
ft1_2
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt2_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt2_1'
>
通过
</button>
<button
id=
'btn_
ft1_2'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_2'
>
错误
</button>
<div
id=
'div_
pt2_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_2
'
class=
"collapse in"
>
<pre>
<pre>
pt2_1: 广告点击:{"status":0}
ft1_2: ImportError: Failed to import test module: android_events.test_adclick
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_adclick.py", line 12, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -287,29 +223,28 @@ pt2_1: 广告点击:{"status":0}
...
@@ -287,29 +223,28 @@ pt2_1: 广告点击:{"status":0}
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_3'
class=
'none'
>
<td>
android_events.test_adshow.adshowTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_adshow
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c3',1)"
class=
"detail"
id=
'c3'
>
详细
</a></td>
</tr>
<tr
id=
'pt3_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testadshow
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt3_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt3_1'>通过
</button>
<button id='btn_
ft1_3' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_3'>错误
</button>
<div id='div_
pt3_1
' class="collapse"> -->
<div id='div_
ft1_3
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt3_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt3_1'
>
通过
</button>
<button
id=
'btn_
ft1_3'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_3'
>
错误
</button>
<div
id=
'div_
pt3_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_3
'
class=
"collapse in"
>
<pre>
<pre>
pt3_1:
ft1_3: ImportError: Failed to import test module: android_events.test_adshow
广告展示:{"status":0}
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_adshow.py", line 12, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -317,28 +252,28 @@ pt3_1:
...
@@ -317,28 +252,28 @@ pt3_1:
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_4'
class=
'none'
>
<td>
android_events.test_appduration.appdurationTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_appduration
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c4',1)"
class=
"detail"
id=
'c4'
>
详细
</a></td>
</tr>
<tr
id=
'pt4_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testappduration
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt4_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt4_1'>通过
</button>
<button id='btn_
ft1_4' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_4'>错误
</button>
<div id='div_
pt4_1
' class="collapse"> -->
<div id='div_
ft1_4
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt4_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt4_1'
>
通过
</button>
<button
id=
'btn_
ft1_4'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_4'
>
错误
</button>
<div
id=
'div_
pt4_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_4
'
class=
"collapse in"
>
<pre>
<pre>
pt4_1: App使用时长:{"status":0}
ft1_4: ImportError: Failed to import test module: android_events.test_appduration
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_appduration.py", line 12, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -346,28 +281,28 @@ pt4_1: App使用时长:{"status":0}
...
@@ -346,28 +281,28 @@ pt4_1: App使用时长:{"status":0}
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_5'
class=
'none'
>
<td>
android_events.test_batchUpload.batchUploadTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_batchUpload
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c5',1)"
class=
"detail"
id=
'c5'
>
详细
</a></td>
</tr>
<tr
id=
'pt5_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testbatchUpload
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt5_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt5_1'>通过
</button>
<button id='btn_
ft1_5' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_5'>错误
</button>
<div id='div_
pt5_1
' class="collapse"> -->
<div id='div_
ft1_5
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt5_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt5_1'
>
通过
</button>
<button
id=
'btn_
ft1_5'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_5'
>
错误
</button>
<div
id=
'div_
pt5_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_5
'
class=
"collapse in"
>
<pre>
<pre>
pt5_1: 自定义
ft1_5: ImportError: Failed to import test module: android_events.test_batchUpload
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_batchUpload.py", line 13, in
<
module
>
from config.envcfg import prod_event_url, headers
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -375,28 +310,28 @@ pt5_1: 自定义
...
@@ -375,28 +310,28 @@ pt5_1: 自定义
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_6'
class=
'none'
>
<td>
android_events.test_custom.customTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_custom
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c6',1)"
class=
"detail"
id=
'c6'
>
详细
</a></td>
</tr>
<tr
id=
'pt6_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testcustom
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt6_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt6_1'>通过
</button>
<button id='btn_
ft1_6' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_6'>错误
</button>
<div id='div_
pt6_1
' class="collapse"> -->
<div id='div_
ft1_6
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt6_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt6_1'
>
通过
</button>
<button
id=
'btn_
ft1_6'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_6'
>
错误
</button>
<div
id=
'div_
pt6_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_6
'
class=
"collapse in"
>
<pre>
<pre>
pt6_1: 自定义{"status":0}
ft1_6: ImportError: Failed to import test module: android_events.test_custom
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_custom.py", line 11, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -404,28 +339,28 @@ pt6_1: 自定义{"status":0}
...
@@ -404,28 +339,28 @@ pt6_1: 自定义{"status":0}
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_7'
class=
'none'
>
<td>
android_events.test_gettime.gettimeTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_install
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c7',1)"
class=
"detail"
id=
'c7'
>
详细
</a></td>
</tr>
<tr
id=
'pt7_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testgettime
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt7_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt7_1'>通过
</button>
<button id='btn_
ft1_7' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_7'>错误
</button>
<div id='div_
pt7_1
' class="collapse"> -->
<div id='div_
ft1_7
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt7_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt7_1'
>
通过
</button>
<button
id=
'btn_
ft1_7'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_7'
>
错误
</button>
<div
id=
'div_
pt7_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_7
'
class=
"collapse in"
>
<pre>
<pre>
pt7_1: {"ts":1604460418686,"status":0}
ft1_7: ImportError: Failed to import test module: android_events.test_install
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_install.py", line 11, in
<
module
>
from config.envcfg import prod_event_url, event_interface, headers
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -433,29 +368,28 @@ pt7_1: {"ts":1604460418686,"status":0}
...
@@ -433,29 +368,28 @@ pt7_1: {"ts":1604460418686,"status":0}
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_8'
class=
'none'
>
<td>
android_events.test_install.installTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_login
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c8',1)"
class=
"detail"
id=
'c8'
>
详细
</a></td>
</tr>
<tr
id=
'pt8_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testinstall
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt8_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt8_1'>通过
</button>
<button id='btn_
ft1_8' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_8'>错误
</button>
<div id='div_
pt8_1
' class="collapse"> -->
<div id='div_
ft1_8
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt8_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt8_1'
>
通过
</button>
<button
id=
'btn_
ft1_8'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_8'
>
错误
</button>
<div
id=
'div_
pt8_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_8
'
class=
"collapse in"
>
<pre>
<pre>
pt8_1:
ft1_8: ImportError: Failed to import test module: android_events.test_login
激活事件执行结果:{"status":0}
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_login.py", line 13, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -463,28 +397,28 @@ pt8_1:
...
@@ -463,28 +397,28 @@ pt8_1:
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_9'
class=
'none'
>
<td>
android_events.test_login.loninTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_pageduration
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c9',1)"
class=
"detail"
id=
'c9'
>
详细
</a></td>
</tr>
<tr
id=
'pt9_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testlogin
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt9_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt9_1'>通过
</button>
<button id='btn_
ft1_9' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_9'>错误
</button>
<div id='div_
pt9_1
' class="collapse"> -->
<div id='div_
ft1_9
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt9_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt9_1'
>
通过
</button>
<button
id=
'btn_
ft1_9'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_9'
>
错误
</button>
<div
id=
'div_
pt9_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_9
'
class=
"collapse in"
>
<pre>
<pre>
pt9_1: 登录{"status":0}
ft1_9: ImportError: Failed to import test module: android_events.test_pageduration
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_pageduration.py", line 13, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -492,28 +426,28 @@ pt9_1: 登录{"status":0}
...
@@ -492,28 +426,28 @@ pt9_1: 登录{"status":0}
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_10'
class=
'none'
>
<td>
android_events.test_pageduration.pagedurationTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_payment
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c10',1)"
class=
"detail"
id=
'c10'
>
详细
</a></td>
</tr>
<tr
id=
'pt10_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testpageduration
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt10_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt10_1'>通过
</button>
<button id='btn_
ft1_10' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_10'>错误
</button>
<div id='div_
pt10_1
' class="collapse"> -->
<div id='div_
ft1_10
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt10_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt10_1'
>
通过
</button>
<button
id=
'btn_
ft1_10'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_10'
>
错误
</button>
<div
id=
'div_
pt10_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_10
'
class=
"collapse in"
>
<pre>
<pre>
pt10_1: App页面浏览时长分布:{"status":0}
ft1_10: ImportError: Failed to import test module: android_events.test_payment
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_payment.py", line 12, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -521,28 +455,28 @@ pt10_1: App页面浏览时长分布:{"status":0}
...
@@ -521,28 +455,28 @@ pt10_1: App页面浏览时长分布:{"status":0}
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_11'
class=
'none'
>
<td>
android_events.test_payment.payTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_payorder
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c11',1)"
class=
"detail"
id=
'c11'
>
详细
</a></td>
</tr>
<tr
id=
'pt11_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testpayment
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt11_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt11_1'>通过
</button>
<button id='btn_
ft1_11' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_11'>错误
</button>
<div id='div_
pt11_
1' class="collapse"> -->
<div id='div_
ft1_1
1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt11_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt11_1'
>
通过
</button>
<button
id=
'btn_
ft1_11'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_11'
>
错误
</button>
<div
id=
'div_
pt11_
1'
class=
"collapse in"
>
<div
id=
'div_
ft1_1
1'
class=
"collapse in"
>
<pre>
<pre>
pt11_1: 付费{"status":0}
ft1_11: ImportError: Failed to import test module: android_events.test_payorder
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_payorder.py", line 12, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -550,28 +484,28 @@ pt11_1: 付费{"status":0}
...
@@ -550,28 +484,28 @@ pt11_1: 付费{"status":0}
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_12'
class=
'none'
>
<td>
android_events.test_payorder.payorderTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_register
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c12',1)"
class=
"detail"
id=
'c12'
>
详细
</a></td>
</tr>
<tr
id=
'pt12_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testpayorder
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt12_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt12_1'>通过
</button>
<button id='btn_
ft1_12' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_12'>错误
</button>
<div id='div_
pt12_1
' class="collapse"> -->
<div id='div_
ft1_12
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt12_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt12_1'
>
通过
</button>
<button
id=
'btn_
ft1_12'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_12'
>
错误
</button>
<div
id=
'div_
pt12_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_12
'
class=
"collapse in"
>
<pre>
<pre>
pt12_1: 订单{"status":0}
ft1_12: ImportError: Failed to import test module: android_events.test_register
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_register.py", line 13, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -579,28 +513,28 @@ pt12_1: 订单{"status":0}
...
@@ -579,28 +513,28 @@ pt12_1: 订单{"status":0}
</td>
</td>
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
id=
'ft1_13'
class=
'none'
>
<td>
android_events.test_register.registerTestCase
</td>
<td
class=
'errorCase'
><div
class=
'testcase'
>
test_startup
</div></td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c13',1)"
class=
"detail"
id=
'c13'
>
详细
</a></td>
</tr>
<tr
id=
'pt13_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
testregister
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_
pt13_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt13_1'>通过
</button>
<button id='btn_
ft1_13' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_13'>错误
</button>
<div id='div_
pt13_1
' class="collapse"> -->
<div id='div_
ft1_13
' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_
pt13_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt13_1'
>
通过
</button>
<button
id=
'btn_
ft1_13'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_ft1_13'
>
错误
</button>
<div
id=
'div_
pt13_1
'
class=
"collapse in"
>
<div
id=
'div_
ft1_13
'
class=
"collapse in"
>
<pre>
<pre>
pt13_1: 注册{"status":0}
ft1_13: ImportError: Failed to import test module: android_events.test_startup
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_startup.py", line 12, in
<
module
>
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
</pre>
</pre>
...
@@ -609,27 +543,27 @@ pt13_1: 注册{"status":0}
...
@@ -609,27 +543,27 @@ pt13_1: 注册{"status":0}
</tr>
</tr>
<tr
class=
'passClass warning'
>
<tr
class=
'passClass warning'
>
<td>
android_events.test_
startup.startup
TestCase
</td>
<td>
android_events.test_
gettime.gettime
TestCase
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
1
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
>
0
</td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c
14',1)"
class=
"detail"
id=
'c14
'
>
详细
</a></td>
<td
class=
"text-center"
><a
href=
"javascript:showClassDetail('c
2',1)"
class=
"detail"
id=
'c2
'
>
详细
</a></td>
</tr>
</tr>
<tr
id=
'pt
14
_1'
class=
'hiddenRow'
>
<tr
id=
'pt
2
_1'
class=
'hiddenRow'
>
<td
class=
'passCase'
><div
class=
'testcase'
>
test
startup
</div></td>
<td
class=
'passCase'
><div
class=
'testcase'
>
test
gettime
</div></td>
<td
colspan=
'5'
align=
'center'
>
<td
colspan=
'5'
align=
'center'
>
<!--默认收起错误信息 -Findyou
<!--默认收起错误信息 -Findyou
<button id='btn_pt
14_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt14
_1'>通过</button>
<button id='btn_pt
2_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt2
_1'>通过</button>
<div id='div_pt
14
_1' class="collapse"> -->
<div id='div_pt
2
_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<!-- 默认展开错误信息 -Findyou -->
<button
id=
'btn_pt
14_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt14
_1'
>
通过
</button>
<button
id=
'btn_pt
2_1'
type=
"button"
class=
"btn btn-danger btn-xs"
data-toggle=
"collapse"
data-target=
'#div_pt2
_1'
>
通过
</button>
<div
id=
'div_pt
14
_1'
class=
"collapse in"
>
<div
id=
'div_pt
2
_1'
class=
"collapse in"
>
<pre>
<pre>
pt
14_1: 启动{"status":0,"caid":"00_658BF93B71D8CCD446667DF1FC8F5112_A621A8F4404C9B0D3CF26AA86457456A","type":1
}
pt
2_1: {"ts":1604578807751,"status":0
}
</pre>
</pre>
...
@@ -640,10 +574,10 @@ pt14_1: 启动{"status":0,"caid":"00_658BF93B71D8CCD446667DF1FC8F5112_A621A8F440
...
@@ -640,10 +574,10 @@ pt14_1: 启动{"status":0,"caid":"00_658BF93B71D8CCD446667DF1FC8F5112_A621A8F440
<tr
id=
'total_row'
class=
"text-center active"
>
<tr
id=
'total_row'
class=
"text-center active"
>
<td>
总计
</td>
<td>
总计
</td>
<td>
14
</td>
<td>
14
</td>
<td>
13
</td>
<td>
0
</td>
<td>
1
</td>
<td>
1
</td>
<td>
通过率:92.86%
</td>
<td>
0
</td>
<td>
13
</td>
<td>
通过率:7.14%
</td>
</tr>
</tr>
</table>
</table>
...
...
testcase/run_all_cases.py
View file @
9821e4d3
...
@@ -8,13 +8,9 @@
...
@@ -8,13 +8,9 @@
import
unittest
import
unittest
import
os
import
os
from
report
import
HTMLTestReportCN
import
HTMLTestReportCN
import
sys
curPath
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
sys
.
path
.
append
(
rootPath
)
case_path
=
os
.
path
.
join
(
os
.
getcwd
())
case_path
=
os
.
path
.
join
(
os
.
getcwd
())
report_path
=
r"/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/report/result.html"
report_path
=
r"/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/report/result.html"
...
...
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