Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
55194bea
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,发现更多精彩内容 >>
提交
55194bea
编写于
12月 24, 2020
作者:
F
fit2-zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(接口自动化): 修复导出问题
上级
e929c0f6
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
65 addition
and
71 deletion
+65
-71
frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue
...ss/components/api/automation/scenario/ApiScenarioList.vue
+1
-1
frontend/src/business/components/api/definition/ApiDefinition.vue
.../src/business/components/api/definition/ApiDefinition.vue
+7
-16
frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue
...ents/api/definition/components/list/ApiCaseSimpleList.vue
+1
-1
frontend/src/business/components/api/definition/components/list/ApiList.vue
...ess/components/api/definition/components/list/ApiList.vue
+1
-1
frontend/src/i18n/en-US.js
frontend/src/i18n/en-US.js
+1
-0
frontend/src/i18n/zh-CN.js
frontend/src/i18n/zh-CN.js
+1
-0
frontend/src/i18n/zh-TW.js
frontend/src/i18n/zh-TW.js
+53
-52
未找到文件。
frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue
浏览文件 @
55194bea
...
...
@@ -50,7 +50,7 @@
<el-table-column
:label=
"$t('commons.operating')"
width=
"200px"
v-if=
"!referenced"
>
<
template
v-slot:default=
"{row}"
>
<div
v-if=
"trashEnable"
>
<el-button
type=
"text"
@
click=
"reductionApi(row)"
>
恢复
</el-button>
<el-button
type=
"text"
@
click=
"reductionApi(row)"
>
{{
$t
(
'
commons.reduction
'
)
}}
</el-button>
<el-button
type=
"text"
@
click=
"remove(row)"
>
{{
$t
(
'
api_test.automation.remove
'
)
}}
</el-button>
</div>
<div
v-else
>
...
...
frontend/src/business/components/api/definition/ApiDefinition.vue
浏览文件 @
55194bea
...
...
@@ -249,22 +249,13 @@
downloadFile
(
"
导出API.json
"
,
JSON
.
stringify
(
obj
));
}
else
{
let
condition
=
{};
if
(
this
.
isApiListEnable
)
{
let
url
=
"
/api/definition/list/1/100000
"
;
condition
.
filters
=
[
"
Prepare
"
,
"
Underway
"
,
"
Completed
"
];
condition
.
projectId
=
getCurrentProjectID
();
this
.
$post
(
url
,
condition
,
response
=>
{
obj
.
data
=
response
.
data
.
listObject
;
downloadFile
(
"
导出API.json
"
,
JSON
.
stringify
(
obj
));
});
}
else
{
let
url
=
"
/api/testcase/list/
"
;
condition
.
projectId
=
getCurrentProjectID
();
this
.
$post
(
url
,
condition
,
response
=>
{
obj
.
data
=
response
.
data
;
downloadFile
(
"
导出API.json
"
,
JSON
.
stringify
(
obj
));
});
}
let
url
=
"
/api/definition/list/1/100000
"
;
condition
.
filters
=
[
"
Prepare
"
,
"
Underway
"
,
"
Completed
"
];
condition
.
projectId
=
getCurrentProjectID
();
this
.
$post
(
url
,
condition
,
response
=>
{
obj
.
data
=
response
.
data
.
listObject
;
downloadFile
(
"
导出API.json
"
,
JSON
.
stringify
(
obj
));
});
}
},
refresh
(
data
)
{
...
...
frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue
浏览文件 @
55194bea
...
...
@@ -69,7 +69,7 @@
<el-table-column
v-if=
"!isReadOnly && !isRelevanceModel"
:label=
"$t('commons.operating')"
min-width=
"130"
align=
"center"
>
<
template
v-slot:default=
"scope"
>
<!--
<el-button
type=
"text"
@
click=
"reductionApi(scope.row)"
v-if=
"trashEnable"
>
恢复
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"reductionApi(scope.row)"
v-if=
"trashEnable"
>
{{
$t
(
'
commons.reduction
'
)
}}
</el-button>
-->
<el-button
type=
"text"
@
click=
"handleTestCase(scope.row)"
v-if=
"!trashEnable"
>
{{
$t
(
'
commons.edit
'
)
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.row)"
style=
"color: #F56C6C"
>
{{
$t
(
'
commons.delete
'
)
}}
</el-button>
</
template
>
...
...
frontend/src/business/components/api/definition/components/list/ApiList.vue
浏览文件 @
55194bea
...
...
@@ -78,7 +78,7 @@
<el-table-column
v-if=
"!isReadOnly && !isRelevance"
:label=
"$t('commons.operating')"
min-width=
"130"
align=
"center"
>
<
template
v-slot:default=
"scope"
>
<el-button
type=
"text"
@
click=
"reductionApi(scope.row)"
v-if=
"trashEnable"
>
恢复
</el-button>
<el-button
type=
"text"
@
click=
"reductionApi(scope.row)"
v-if=
"trashEnable"
>
{{
$t
(
'
commons.reduction
'
)
}}
</el-button>
<el-button
type=
"text"
@
click=
"editApi(scope.row)"
v-else
>
{{
$t
(
'
commons.edit
'
)
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleTestCase(scope.row)"
>
{{
$t
(
'
api_test.definition.request.case
'
)
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.row)"
style=
"color: #F56C6C"
>
{{
$t
(
'
commons.delete
'
)
}}
</el-button>
...
...
frontend/src/i18n/en-US.js
浏览文件 @
55194bea
...
...
@@ -65,6 +65,7 @@ export default {
refresh
:
'
Refresh
'
,
remark
:
'
Remark
'
,
delete
:
'
Delete
'
,
reduction
:
'
Reduction
'
,
not_filled
:
'
Not filled
'
,
please_select
:
'
Please select
'
,
search_by_name
:
'
Search by name
'
,
...
...
frontend/src/i18n/zh-CN.js
浏览文件 @
55194bea
...
...
@@ -65,6 +65,7 @@ export default {
refresh
:
'
刷新
'
,
remark
:
'
备注
'
,
delete
:
'
删除
'
,
reduction
:
'
恢复
'
,
not_filled
:
'
未填写
'
,
please_select
:
'
请选择
'
,
search_by_name
:
'
根据名称搜索
'
,
...
...
frontend/src/i18n/zh-TW.js
浏览文件 @
55194bea
...
...
@@ -65,6 +65,7 @@ export default {
refresh
:
'
刷新
'
,
remark
:
'
備註
'
,
delete
:
'
刪除
'
,
reduction
:
'
恢复
'
,
not_filled
:
'
未填寫
'
,
please_select
:
'
請選擇
'
,
search_by_name
:
'
根據名稱搜索
'
,
...
...
@@ -796,88 +797,88 @@ export default {
suffixFormatErr
:
"
文件格式不符合要求
"
,
swagger_url_import
:
"
使用URL導入
"
,
},
home_page
:{
unit_of_measurement
:
"
個
"
,
api_count_card
:{
home_page
:
{
unit_of_measurement
:
"
個
"
,
api_count_card
:
{
title
:
"
接口數量統計
"
,
},
test_case_count_card
:{
test_case_count_card
:
{
title
:
"
接口用例數量統計
"
,
},
test_scene_count_card
:{
test_scene_count_card
:
{
title
:
"
場景用例數量統計
"
,
},
schedule_task_count_card
:{
schedule_task_count_card
:
{
title
:
"
定時任務數量統計
"
,
},
detail_card
:{
running
:
"
進行中
"
,
not_started
:
"
未開始
"
,
finished
:
"
已完成
"
,
uncoverage
:
"
未覆蓋
"
,
coverage
:
"
已覆蓋
"
,
unexecute
:
"
未執行
"
,
execution_failed
:
"
未通過
"
,
execution_pass
:
"
已通過
"
,
failed
:
"
失敗
"
,
success
:
"
成功
"
,
rate
:{
completion
:
"
完成率
"
,
coverage
:
"
覆蓋率
"
,
pass
:
"
通過率
"
,
success
:
"
成功率
"
,
detail_card
:
{
running
:
"
進行中
"
,
not_started
:
"
未開始
"
,
finished
:
"
已完成
"
,
uncoverage
:
"
未覆蓋
"
,
coverage
:
"
已覆蓋
"
,
unexecute
:
"
未執行
"
,
execution_failed
:
"
未通過
"
,
execution_pass
:
"
已通過
"
,
failed
:
"
失敗
"
,
success
:
"
成功
"
,
rate
:
{
completion
:
"
完成率
"
,
coverage
:
"
覆蓋率
"
,
pass
:
"
通過率
"
,
success
:
"
成功率
"
,
},
},
api_details_card
:{
api_details_card
:
{
title
:
"
接口
"
,
this_week_add
:
"
本週新增: {0}个
"
,
this_week_add
:
"
本週新增: {0}个
"
,
},
test_case_details_card
:{
test_case_details_card
:
{
title
:
"
用例
"
,
this_week_add
:
"
本週新增: {0}个
"
,
this_week_execute
:
"
本週執行: {0}次
"
,
executed
:
"
歷史總執行: {0}次
"
,
this_week_add_sm
:
"
本週新增:<br/>{0}个
"
,
this_week_execute_sm
:
"
本週執行:<br/>{0}次
"
,
executed_sm
:
"
歷史總執行:<br/>{0}次
"
,
this_week_add
:
"
本週新增: {0}个
"
,
this_week_execute
:
"
本週執行: {0}次
"
,
executed
:
"
歷史總執行: {0}次
"
,
this_week_add_sm
:
"
本週新增:<br/>{0}个
"
,
this_week_execute_sm
:
"
本週執行:<br/>{0}次
"
,
executed_sm
:
"
歷史總執行:<br/>{0}次
"
,
},
test_scene_details_card
:{
test_scene_details_card
:
{
title
:
"
場景
"
,
this_week_add
:
"
本週新增: {0}个
"
,
this_week_execute
:
"
本週執行: {0}次
"
,
executed
:
"
歷史總執行: {0}次
"
,
this_week_add_sm
:
"
本週新增:<br/>{0}个
"
,
this_week_execute_sm
:
"
本週執行:<br/>{0}次
"
,
executed_sm
:
"
歷史總執行:<br/>{0}次
"
,
this_week_add
:
"
本週新增: {0}个
"
,
this_week_execute
:
"
本週執行: {0}次
"
,
executed
:
"
歷史總執行: {0}次
"
,
this_week_add_sm
:
"
本週新增:<br/>{0}个
"
,
this_week_execute_sm
:
"
本週執行:<br/>{0}次
"
,
executed_sm
:
"
歷史總執行:<br/>{0}次
"
,
},
schedule_task_details_card
:{
schedule_task_details_card
:
{
title
:
"
定時任務
"
,
this_week_add
:
"
本週新增: {0}个
"
,
this_week_execute
:
"
本週執行: {0}次
"
,
executed
:
"
歷史總執行: {0}次
"
,
this_week_add_sm
:
"
本週新增:<br/>{0}个
"
,
this_week_execute_sm
:
"
本週執行:<br/>{0}次
"
,
executed_sm
:
"
歷史總執行:<br/>{0}次
"
,
this_week_add
:
"
本週新增: {0}个
"
,
this_week_execute
:
"
本週執行: {0}次
"
,
executed
:
"
歷史總執行: {0}次
"
,
this_week_add_sm
:
"
本週新增:<br/>{0}个
"
,
this_week_execute_sm
:
"
本週執行:<br/>{0}次
"
,
executed_sm
:
"
歷史總執行:<br/>{0}次
"
,
},
failed_case_list
:{
failed_case_list
:
{
title
:
"
過去7天測試計畫失敗用例TOP 10
"
,
table_coloum
:{
table_coloum
:
{
index
:
"
排名
"
,
case_name
:
"
用例名稱
"
,
case_type
:
"
用例類型
"
,
test_plan
:
"
所屬測試計畫
"
,
failure_times
:
"
失敗次數
"
,
},
table_value
:{
case_type
:{
table_value
:
{
case_type
:
{
api
:
"
接口用例
"
,
scene
:
"
場景用例
"
,
}
}
},
running_task_list
:{
running_task_list
:
{
title
:
"
運行中的定時任務
"
,
table_coloum
:{
table_coloum
:
{
index
:
"
序號
"
,
scenario
:
"
場景名稱
"
,
run_rule
:
"
運行規則
"
,
...
...
@@ -886,7 +887,7 @@ export default {
create_user
:
"
創建人
"
,
update_time
:
"
更新時間
"
,
},
confirm
:{
confirm
:
{
close_title
:
"
要關閉這條定時任務嗎?
"
,
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录