Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
interfaceTest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李远洪
interfaceTest
Commits
fd40b1a2
Commit
fd40b1a2
authored
Jun 01, 2020
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了测试报告的样式
parent
33792aa0
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
749 additions
and
1 deletion
+749
-1
testCase/MainCase.py
testCase/MainCase.py
+3
-1
testCase/common/HTMLTestRunnerNew.py
testCase/common/HTMLTestRunnerNew.py
+746
-0
No files found.
testCase/MainCase.py
View file @
fd40b1a2
...
...
@@ -12,6 +12,7 @@ from testCase.CarDynamic_interface_cases import CarDynamic_interface_cases
from
testCase.Car_interface_cases
import
Car_interface_cases
from
testCase.DemoCar_case
import
DemoCar_case
from
testCase.User_interface_cases
import
User_interface_cases
from
testCase.common
import
HTMLTestRunnerNew
from
testCase.common.EmailTool
import
EmailTool
from
testCase.common.HTMLTestRunner
import
HTMLTestRunner
...
...
@@ -135,7 +136,8 @@ class MainCase():
fp
=
open
(
filePath
,
'wb'
)
# 生成报告的Title,描述
runner
=
HTMLTestRunner
(
stream
=
fp
,
title
=
'车安优App接口测试'
,
description
=
'车安优App拨测程序测试报告...'
)
# runner = HTMLTestRunner(stream=fp, title='车安优App接口测试', description='车安优App拨测程序测试报告...')
runner
=
HTMLTestRunnerNew
.
HTMLTestRunner
(
stream
=
fp
,
title
=
'车安优App接口测试'
,
description
=
'车安优App拨测程序测试报告...'
)
result
=
runner
.
run
(
suite
)
self
.
sucessCount
=
result
.
success_count
self
.
failureCount
=
result
.
failure_count
...
...
testCase/common/HTMLTestRunnerNew.py
0 → 100644
View file @
fd40b1a2
This diff is collapsed.
Click to expand it.
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