fix(项目设置): 修复消息通知测试跟踪一些模版字段获取不到值问题
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018720 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018713 --user=郭雨琦
This commit is contained in:
parent
7dc50da288
commit
bb67d77a50
|
@ -133,10 +133,6 @@ export default {
|
||||||
label: this.$t('test_track.case.number'),
|
label: this.$t('test_track.case.number'),
|
||||||
value: 'num',
|
value: 'num',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: this.$t('test_track.other_test_name'),
|
|
||||||
value: 'otherTestName',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: this.$t('test_track.review.review_status'),
|
label: this.$t('test_track.review.review_status'),
|
||||||
value: 'reviewStatus',
|
value: 'reviewStatus',
|
||||||
|
|
|
@ -75,7 +75,8 @@ export default {
|
||||||
{value: 'EXECUTE_SUCCESSFUL', label: this.$t('commons.run_success')},
|
{value: 'EXECUTE_SUCCESSFUL', label: this.$t('commons.run_success')},
|
||||||
{value: 'EXECUTE_FAILED', label: this.$t('commons.run_fail')},
|
{value: 'EXECUTE_FAILED', label: this.$t('commons.run_fail')},
|
||||||
],
|
],
|
||||||
variables: [
|
variables: [],
|
||||||
|
reportVariables: [
|
||||||
{
|
{
|
||||||
label: this.$t('group.operator'),
|
label: this.$t('group.operator'),
|
||||||
value: 'operator',
|
value: 'operator',
|
||||||
|
@ -104,14 +105,6 @@ export default {
|
||||||
label: this.$t('test_track.plan.plan_stage'),
|
label: this.$t('test_track.plan.plan_stage'),
|
||||||
value: 'stage',
|
value: 'stage',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: this.$t('test_track.case.match_rule'),
|
|
||||||
value: 'testCaseMatchRule',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: this.$t('test_track.plan.plan_stage'),
|
|
||||||
value: 'executorMatchRule',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: this.$t('commons.create_time'),
|
label: this.$t('commons.create_time'),
|
||||||
value: 'createTime',
|
value: 'createTime',
|
||||||
|
@ -261,6 +254,76 @@ export default {
|
||||||
value: 'reportEndTime'
|
value: 'reportEndTime'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
noReportVariables: [
|
||||||
|
{
|
||||||
|
label: this.$t('group.operator'),
|
||||||
|
value: 'operator',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'id',
|
||||||
|
value: 'id',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('workspace.id'),
|
||||||
|
value: 'workspaceId',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('commons.name'),
|
||||||
|
value: 'name',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('commons.description'),
|
||||||
|
value: 'description',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('commons.status'),
|
||||||
|
value: 'status',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('test_track.plan.plan_stage'),
|
||||||
|
value: 'stage',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('commons.create_time'),
|
||||||
|
value: 'createTime',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('commons.update_time'),
|
||||||
|
value: 'updateTime',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('test_track.plan.actual_start_time'),
|
||||||
|
value: 'actualStartTime',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('test_track.plan.actual_end_time'),
|
||||||
|
value: 'actualEndTime',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('test_track.plan.planned_start_time'),
|
||||||
|
value: 'plannedStartTime',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('test_track.plan.planned_end_time'),
|
||||||
|
value: 'plannedEndTime',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('commons.create_user'),
|
||||||
|
value: 'creator',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('project.id'),
|
||||||
|
value: 'projectId',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('commons.execution_times'),
|
||||||
|
value: 'executionTimes',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('test_track.automatic_status_update'),
|
||||||
|
value: 'automaticStatusUpdate',
|
||||||
|
}
|
||||||
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
|
@ -345,24 +408,31 @@ export default {
|
||||||
switch (row.event) {
|
switch (row.event) {
|
||||||
case 'CREATE':
|
case 'CREATE':
|
||||||
robotTemplate = this.robotTitle;
|
robotTemplate = this.robotTitle;
|
||||||
|
this.variables = this.noReportVariables;
|
||||||
break;
|
break;
|
||||||
case 'UPDATE':
|
case 'UPDATE':
|
||||||
robotTemplate = this.robotTitle.replace('创建', '更新');
|
robotTemplate = this.robotTitle.replace('创建', '更新');
|
||||||
|
this.variables = this.noReportVariables;
|
||||||
break;
|
break;
|
||||||
case 'DELETE':
|
case 'DELETE':
|
||||||
robotTemplate = this.robotTitle.replace('创建', '删除');
|
robotTemplate = this.robotTitle.replace('创建', '删除');
|
||||||
|
this.variables = this.noReportVariables;
|
||||||
break;
|
break;
|
||||||
case 'COMMENT':
|
case 'COMMENT':
|
||||||
robotTemplate = this.robotTitle.replace('创建', '评论');
|
robotTemplate = this.robotTitle.replace('创建', '评论');
|
||||||
|
this.variables = this.noReportVariables;
|
||||||
break;
|
break;
|
||||||
case "COMPLETE":
|
case "COMPLETE":
|
||||||
robotTemplate = this.robotTitle.replace('创建', '完成测试计划');
|
robotTemplate = this.robotTitle.replace('创建', '完成测试计划');
|
||||||
|
this.variables = this.reportVariables;
|
||||||
break;
|
break;
|
||||||
case "EXECUTE_SUCCESSFUL":
|
case "EXECUTE_SUCCESSFUL":
|
||||||
robotTemplate = this.robotTitle.replace('创建了测试计划', '执行测试计划成功');
|
robotTemplate = this.robotTitle.replace('创建了测试计划', '执行测试计划成功');
|
||||||
|
this.variables = this.reportVariables;
|
||||||
break;
|
break;
|
||||||
case "EXECUTE_FAILED":
|
case "EXECUTE_FAILED":
|
||||||
robotTemplate = this.robotTitle.replace('创建了测试计划', '执行测试计划失败');
|
robotTemplate = this.robotTitle.replace('创建了测试计划', '执行测试计划失败');
|
||||||
|
this.variables = this.reportVariables;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue