Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
36be1215
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 大约 3 年
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
36be1215
编写于
5月 08, 2021
作者:
C
Captain.B
提交者:
BugKing
5月 13, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(性能测试): 报告统计table的宽度修改
上级
c69ed276
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
144 addition
and
76 deletion
+144
-76
frontend/src/business/components/performance/report/components/ErrorLog.vue
...ess/components/performance/report/components/ErrorLog.vue
+123
-64
frontend/src/business/components/performance/report/components/RequestStatistics.vue
...nents/performance/report/components/RequestStatistics.vue
+21
-12
未找到文件。
frontend/src/business/components/performance/report/components/ErrorLog.vue
浏览文件 @
36be1215
...
@@ -30,11 +30,9 @@
...
@@ -30,11 +30,9 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
style=
"margin-top: 40px;"
></div>
<span
class=
"table-title"
>
Top 5 Errors
</span>
<span
class=
"table-title"
>
Top 5 Errors
</span>
<el-table
<el-table
:data=
"error
Top5
"
:data=
"error
Summary
"
border
border
stripe
stripe
style=
"width: 100%"
style=
"width: 100%"
...
@@ -43,83 +41,111 @@
...
@@ -43,83 +41,111 @@
<el-table-column
<el-table-column
prop=
"sample"
prop=
"sample"
label=
"Sample"
label=
"Sample"
width=
"200"
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"samples"
prop=
"samples"
label=
"#Samples"
label=
"#Samples"
width=
"120"
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"errorsAllSize"
prop=
"errorsAllSize"
label=
"All Errors"
label=
"All Errors"
width=
"100"
>
>
</el-table-column>
</el-table-column>
</el-table>
<span
class=
"table-title"
>
#1 Error
</span>
<el-table
:data=
"errorTop1"
border
stripe
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"error1"
prop=
"error1"
label=
"#1 Error"
label=
"#1 Error"
width=
"400"
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"error1Size"
prop=
"error1Size"
label=
"#1 Errors Count"
label=
"#1 Errors Count"
width=
"150"
>
>
</el-table-column>
</el-table-column>
</el-table>
<span
class=
"table-title"
>
#2 Error
</span>
<el-table
:data=
"errorTop2"
border
stripe
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"error2"
prop=
"error2"
label=
"#2 Error"
label=
"#2 Error"
width=
"400"
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"error2Size"
prop=
"error2Size"
label=
"#2 Errors Count"
label=
"#2 Errors Count"
width=
"150"
>
>
</el-table-column>
</el-table-column>
</el-table>
<span
class=
"table-title"
>
#3 Error
</span>
<el-table
:data=
"errorTop3"
border
stripe
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"error3"
prop=
"error3"
label=
"#3 Error"
label=
"#3 Error"
width=
"400"
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"error3Size"
prop=
"error3Size"
label=
"#3 Errors Count"
label=
"#3 Errors Count"
width=
"150"
>
>
</el-table-column>
</el-table-column>
</el-table>
<span
class=
"table-title"
>
#4 Error
</span>
<el-table
:data=
"errorTop4"
border
stripe
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"error4"
prop=
"error4"
label=
"#4 Error"
label=
"#4 Error"
width=
"400"
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"error4Size"
prop=
"error4Size"
label=
"#4 Errors Count"
label=
"#4 Errors Count"
width=
"150"
>
>
</el-table-column>
</el-table-column>
</el-table>
<span
class=
"table-title"
>
#5 Error
</span>
<el-table
:data=
"errorTop5"
border
stripe
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"error5"
prop=
"error5"
label=
"#5 Error"
label=
"#5 Error"
width=
"400"
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"error5Size"
prop=
"error5Size"
label=
"#5 Errors Count"
label=
"#5 Errors Count"
width=
"150"
>
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -127,57 +153,90 @@
...
@@ -127,57 +153,90 @@
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"
ErrorLog
"
,
name
:
"
ErrorLog
"
,
data
()
{
data
()
{
return
{
return
{
tableData
:
[],
tableData
:
[],
errorTop5
:
[],
errorSummary
:
[],
id
:
''
errorTop1
:
[],
}
errorTop2
:
[],
},
errorTop3
:
[],
methods
:
{
errorTop4
:
[],
initTableData
()
{
errorTop5
:
[],
this
.
$get
(
"
/performance/report/content/errors/
"
+
this
.
id
).
then
(
res
=>
{
id
:
''
this
.
tableData
=
res
.
data
.
data
;
};
}).
catch
(()
=>
{
},
methods
:
{
initTableData
()
{
this
.
$get
(
"
/performance/report/content/errors/
"
+
this
.
id
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
data
;
}).
catch
(()
=>
{
this
.
tableData
=
[];
});
this
.
$get
(
"
/performance/report/content/errors_top5/
"
+
this
.
id
).
then
(
res
=>
{
this
.
errorTop1
=
res
.
data
.
data
.
map
(
e
=>
{
return
{
error1
:
e
.
error1
,
error1Size
:
e
.
error1Size
};
});
this
.
errorTop2
=
res
.
data
.
data
.
map
(
e
=>
{
return
{
error2
:
e
.
error2
,
error2Size
:
e
.
error2Size
};
});
this
.
errorTop3
=
res
.
data
.
data
.
map
(
e
=>
{
return
{
error3
:
e
.
error3
,
error3Size
:
e
.
error3Size
};
});
this
.
errorTop4
=
res
.
data
.
data
.
map
(
e
=>
{
return
{
error4
:
e
.
error4
,
error4Size
:
e
.
error4Size
};
});
this
.
errorTop5
=
res
.
data
.
data
.
map
(
e
=>
{
return
{
error5
:
e
.
error5
,
error5Size
:
e
.
error5Size
};
});
this
.
errorSummary
=
res
.
data
.
data
.
map
(
e
=>
{
return
{
sample
:
e
.
sample
,
samples
:
e
.
samples
,
errorsAllSize
:
e
.
errorsAllSize
};
});
}).
catch
(()
=>
{
this
.
errorTop1
=
[];
this
.
errorTop2
=
[];
this
.
errorTop3
=
[];
this
.
errorTop4
=
[];
this
.
errorTop5
=
[];
this
.
errorSummary
=
[];
});
}
},
watch
:
{
report
:
{
handler
(
val
)
{
if
(
!
val
.
status
||
!
val
.
id
)
{
return
;
}
let
status
=
val
.
status
;
this
.
id
=
val
.
id
;
if
(
status
===
"
Completed
"
||
status
===
"
Running
"
)
{
this
.
initTableData
();
}
else
{
this
.
tableData
=
[];
this
.
tableData
=
[];
})
this
.
errorTop1
=
[];
this
.
$get
(
"
/performance/report/content/errors_top5/
"
+
this
.
id
).
then
(
res
=>
{
this
.
errorTop2
=
[];
this
.
errorTop
5
=
res
.
data
.
data
;
this
.
errorTop
3
=
[]
;
}).
catch
(()
=>
{
this
.
errorTop4
=
[];
this
.
errorTop5
=
[];
this
.
errorTop5
=
[];
})
this
.
errorSummary
=
[];
}
}
},
},
watch
:
{
deep
:
true
report
:
{
}
handler
(
val
)
{
},
if
(
!
val
.
status
||
!
val
.
id
)
{
props
:
[
'
report
'
]
return
;
};
}
let
status
=
val
.
status
;
this
.
id
=
val
.
id
;
if
(
status
===
"
Completed
"
||
status
===
"
Running
"
)
{
this
.
initTableData
();
}
else
{
this
.
tableData
=
[];
this
.
errorTop5
=
[];
}
},
deep
:
true
}
},
props
:
[
'
report
'
]
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.table-title
{
.table-title
{
font-size
:
20px
;
font-size
:
20px
;
color
:
#8492a6
;
color
:
#8492a6
;
display
:
block
;
display
:
block
;
text-align
:
center
;
text-align
:
center
;
margin-bottom
:
8px
;
margin-bottom
:
8px
;
}
margin-top
:
40px
;
}
</
style
>
</
style
>
frontend/src/business/components/performance/report/components/RequestStatistics.vue
浏览文件 @
36be1215
...
@@ -6,14 +6,15 @@
...
@@ -6,14 +6,15 @@
border
border
style=
"width: 100%"
style=
"width: 100%"
>
>
<el-table-column
label=
"Requests"
fixed
width=
"4
50"
align=
"center"
>
<el-table-column
label=
"Requests"
fixed
min-width=
"1
50"
align=
"center"
>
<el-table-column
<el-table-column
prop=
"label"
prop=
"label"
label=
"Label"
label=
"Label"
width=
"4
50"
>
min-width=
"1
50"
>
<template
v-slot:header=
"
{column}">
<template
v-slot:header=
"
{column}">
<span>
Label
</span>
<span>
Label
</span>
<i
class=
"el-icon-search"
style=
"margin-left: 8px;cursor: pointer;font-weight: bold;"
@
click=
"click(column)"
></i>
<i
class=
"el-icon-search"
style=
"margin-left: 8px;cursor: pointer;font-weight: bold;"
@
click=
"click(column)"
></i>
<el-input
v-model=
"searchLabel"
<el-input
v-model=
"searchLabel"
placeholder=
"请输入 Label 搜索"
placeholder=
"请输入 Label 搜索"
size=
"mini"
size=
"mini"
...
@@ -39,6 +40,7 @@
...
@@ -39,6 +40,7 @@
prop=
"fail"
prop=
"fail"
label=
"FAIL"
label=
"FAIL"
align=
"center"
align=
"center"
min-width=
"60"
/>
/>
<el-table-column
<el-table-column
...
@@ -51,39 +53,46 @@
...
@@ -51,39 +53,46 @@
<el-table-column
label=
"Response Times(ms)"
align=
"center"
>
<el-table-column
label=
"Response Times(ms)"
align=
"center"
>
<el-table-column
<el-table-column
prop=
"average"
prop=
"average"
label=
"Average"
label=
"Avg"
min-width=
"60"
/>
/>
<el-table-column
<el-table-column
prop=
"min"
prop=
"min"
label=
"Min"
label=
"Min"
min-width=
"60"
/>
/>
<el-table-column
<el-table-column
prop=
"max"
prop=
"max"
label=
"Max"
label=
"Max"
min-width=
"60"
/>
/>
<el-table-column
<el-table-column
prop=
"median"
prop=
"median"
label=
"Median"
label=
"Med"
min-width=
"60"
/>
/>
<el-table-column
<el-table-column
prop=
"tp90"
prop=
"tp90"
label=
"90% line"
label=
"90%"
min-width=
"60"
/>
/>
<el-table-column
<el-table-column
prop=
"tp95"
prop=
"tp95"
label=
"95% line"
label=
"95%"
min-width=
"60"
/>
/>
<el-table-column
<el-table-column
prop=
"tp99"
prop=
"tp99"
label=
"99% line"
label=
"99%"
min-width=
"60"
/>
/>
</el-table-column>
</el-table-column>
<el-table-column
label=
"Throughput"
>
<el-table-column
label=
"Throughput"
>
<el-table-column
<el-table-column
prop=
"transactions"
prop=
"transactions"
label=
"Trans
actions
/s"
label=
"Trans/s"
width=
"1
5
0"
width=
"1
0
0"
/>
/>
</el-table-column>
</el-table-column>
...
@@ -92,13 +101,13 @@
...
@@ -92,13 +101,13 @@
prop=
"received"
prop=
"received"
label=
"Received"
label=
"Received"
align=
"center"
align=
"center"
width=
"1
5
0"
width=
"1
0
0"
/>
/>
<el-table-column
<el-table-column
prop=
"sent"
prop=
"sent"
label=
"Sent"
label=
"Sent"
align=
"center"
align=
"center"
width=
"1
5
0"
width=
"1
0
0"
/>
/>
</el-table-column>
</el-table-column>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录