chore(测试计划): 性能测试列表隐藏状态只展示执行结果
This commit is contained in:
parent
11c850a766
commit
0e5f1a9238
|
@ -348,10 +348,10 @@ export default {
|
||||||
this.$success(this.$t('test_track.plan.load_case.exec'));
|
this.$success(this.$t('test_track.plan.load_case.exec'));
|
||||||
this.$message(this.$t('commons.run_message'));
|
this.$message(this.$t('commons.run_message'));
|
||||||
this.$refs.taskCenter.open();
|
this.$refs.taskCenter.open();
|
||||||
// 批量执行,10s后刷新一次列表状态,后续执行结果由socket推送
|
// 批量执行,15s后刷新一次列表状态,后续执行结果由socket推送
|
||||||
refreshTable = window.setTimeout(() => {
|
refreshTable = window.setTimeout(() => {
|
||||||
this.initTable();
|
this.initTable();
|
||||||
}, 10 * 1000);
|
}, 15 * 1000);
|
||||||
},
|
},
|
||||||
search() {
|
search() {
|
||||||
this.currentPage = 1;
|
this.currentPage = 1;
|
||||||
|
@ -539,12 +539,21 @@ export default {
|
||||||
try {
|
try {
|
||||||
let obj = JSON.parse(e.data);
|
let obj = JSON.parse(e.data);
|
||||||
let {planCaseId, planCaseStatus, planCaseReportStatus, planCaseReportId} = obj;
|
let {planCaseId, planCaseStatus, planCaseReportStatus, planCaseReportId} = obj;
|
||||||
let data = this.tableData.filter(d => d.id === planCaseId);
|
this.tableData.forEach(d => {
|
||||||
if (data.length > 0) {
|
if (d.id === planCaseId) {
|
||||||
data[0]['status'] = planCaseReportStatus;
|
d.status = planCaseReportStatus;
|
||||||
data[0]['caseStatus'] = planCaseStatus;
|
if (planCaseReportStatus === 'Completed') {
|
||||||
data[0]['loadReportId'] = planCaseReportId;
|
d.caseStatus = 'success';
|
||||||
|
} else if (planCaseReportStatus === 'Error') {
|
||||||
|
d.caseStatus = 'error';
|
||||||
|
} else {
|
||||||
|
d.caseStatus = planCaseStatus;
|
||||||
}
|
}
|
||||||
|
d.loadReportId = planCaseReportId;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
// nothing
|
// nothing
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,8 +62,8 @@ const TRACK_HEADER = {
|
||||||
{id: 'projectName', key: '3', label: 'load_test.project_name'},
|
{id: 'projectName', key: '3', label: 'load_test.project_name'},
|
||||||
{id: 'userName', key: '4', label: 'load_test.user_name'},
|
{id: 'userName', key: '4', label: 'load_test.user_name'},
|
||||||
{id: 'createTime', key: '5', label: 'commons.create_time'},
|
{id: 'createTime', key: '5', label: 'commons.create_time'},
|
||||||
{id: 'status', key: '6', label: 'commons.status'},
|
// {id: 'status', key: '6', label: 'commons.status'},
|
||||||
// {id: 'caseStatus', key: '7', label: 'test_track.plan.load_case.execution_status'},
|
{id: 'caseStatus', key: '7', label: 'test_track.plan.load_case.execution_status'},
|
||||||
{id: 'loadReportId', key: '8', label: 'test_track.plan.load_case.report'},
|
{id: 'loadReportId', key: '8', label: 'test_track.plan.load_case.report'},
|
||||||
],
|
],
|
||||||
//测试计划-场景用例
|
//测试计划-场景用例
|
||||||
|
|
Loading…
Reference in New Issue