Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
kt-keystone
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
kt-keystone
Commits
3407e9eb
提交
3407e9eb
authored
3月 18, 2022
作者:
mry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(web): 修改报告信息
上级
93204ead
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
10 行增加
和
10 行删除
+10
-10
GenerateReporter.java
...ava/org/matrix/testNg/xml/reportXml/GenerateReporter.java
+1
-1
overview.ftl
kt-base/src/main/resources/templates/overview.ftl
+9
-9
overviewBeautiful.ftl
kt-base/src/main/resources/templates/overviewBeautiful.ftl
+0
-0
overviewBeautifuls.ftl
kt-base/src/main/resources/templates/overviewBeautifuls.ftl
+0
-0
index.html
kt-web/src/main/resources/reports/index.html
+0
-0
没有找到文件。
kt-base/src/main/java/org/matrix/testNg/xml/reportXml/GenerateReporter.java
浏览文件 @
3407e9eb
...
...
@@ -36,7 +36,7 @@ public class GenerateReporter implements IReporter {
cfg
.
setDefaultEncoding
(
"UTF-8"
);
cfg
.
setTemplateExceptionHandler
(
TemplateExceptionHandler
.
RETHROW_HANDLER
);
//freemaker的模板文件
Template
temp
=
cfg
.
getTemplate
(
"overview
Beautiful
.ftl"
);
Template
temp
=
cfg
.
getTemplate
(
"overview.ftl"
);
Map
context
=
new
HashMap
();
for
(
ISuite
suite
:
suites
)
{
Map
<
String
,
ISuiteResult
>
suiteResults
=
suite
.
getResults
();
...
...
kt-base/src/main/resources/templates/overview.ftl
浏览文件 @
3407e9eb
...
...
@@ -21,19 +21,19 @@
<form
class=
"form"
>
<
#
if
overView
??
>
<div
class=
"form-group flex"
>
<label
for=
"total"
>
用例总数:
</label>
<label
for=
"total"
>
测试
用例总数:
</label>
<input
class=
"form-control"
id=
"total"
readonly=
"readonly"
value=
"${overView.total!}"
/>
</div>
<div
class=
"form-group flex"
>
<label
for=
"allTime"
>
执行
时间(s)
:
</label>
<label
for=
"allTime"
>
执行
总耗时
:
</label>
<input
class=
"form-control"
id=
"allTime"
readonly=
"readonly"
value=
"${overView.allTime!}"
/>
</div>
<div
class=
"form-group flex"
>
<label
for=
"passNum"
>
通过:
</label>
<label
for=
"passNum"
>
通过
用例数
:
</label>
<input
class=
"form-control"
id=
"passNum"
readonly=
"readonly"
value=
"${overView.passNum!}"
/>
</div>
<div
class=
"form-group flex"
>
<label
for=
"failNum"
>
失败:
</label>
<label
for=
"failNum"
>
失败
用例数
:
</label>
<input
class=
"form-control"
id=
"failNum"
readonly=
"readonly"
value=
"${overView.failNum!}"
/>
</div>
<div
class=
"form-group flex"
>
...
...
@@ -71,7 +71,7 @@
<td>
${failCase.description!}
</td>
<td>
${failCase.result?c}
</td>
<td>
${failCase.duration!}
</td>
<td
class=
"clickClass"
data-message=
"${failCase.resultMessage!}"
>
点击
</td>
<td
class=
"clickClass"
data-message=
"${failCase.resultMessage!}"
>
查看结果
</td>
</tr>
</
#
list>
<
#
else
>
...
...
@@ -90,7 +90,7 @@
<td>
${passCase.description!}
</td>
<td>
${passCase.result?c}
</td>
<td>
${passCase.duration!}
</td>
<td
class=
"clickClass"
data-message=
"${passCase.resultMessage!}"
>
点击
</td>
<td
class=
"clickClass"
data-message=
"${passCase.resultMessage!}"
>
查看结果
</td>
</tr>
</
#
list>
<
#
else
>
...
...
@@ -105,14 +105,14 @@
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
Modal title
</h4>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
结果信息
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
id=
"grp"
>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
</div>
...
...
@@ -127,7 +127,7 @@
let
d
=
c
.
split
(
','
)
let
e
=
[]
d
.
map
(
v
=>
{
e
.
push
({
key
:
v
.
split
(
'='
)[
0
],
value
:
v
.
split
(
'='
)[
1
]})
e
.
push
({
key
:
v
.
split
(
'='
)[
0
]
+
":"
,
value
:
v
.
split
(
'='
)[
1
]})
})
return
e
}
...
...
kt-base/src/main/resources/templates/overviewBeautiful.ftl
deleted
100644 → 0
浏览文件 @
93204ead
This source diff could not be displayed because it is too large. You can
view the blob
instead.
kt-base/src/main/resources/templates/overviewBeautifuls.ftl
deleted
100644 → 0
浏览文件 @
93204ead
差异被折叠。
点击展开。
kt-web/src/main/resources/reports/index.html
浏览文件 @
3407e9eb
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论