fix(接口测试): 场景报告步骤标签缺失问题

--task=1016536 --user=宋昌昌 【Bug转需求】【接口测试】场景报告中包含引用或复制的场景,但是没有显示“场景用例”的标签其他类型都有 https://www.tapd.cn/55049933/s/1592411
This commit is contained in:
song-cc-rock 2024-10-15 19:32:32 +08:00 committed by Craftsman
parent 932f891442
commit 6cfd35c261
6 changed files with 13 additions and 0 deletions

View File

@ -20,6 +20,8 @@
[ScenarioStepType.API_CASE]: { label: 'report.detail.api.apiCase', color: 'rgb(var(--link-4))' }, [ScenarioStepType.API_CASE]: { label: 'report.detail.api.apiCase', color: 'rgb(var(--link-4))' },
[ScenarioStepType.CUSTOM_REQUEST]: { label: 'report.detail.api.customRequest', color: 'rgb(var(--link-4))' }, [ScenarioStepType.CUSTOM_REQUEST]: { label: 'report.detail.api.customRequest', color: 'rgb(var(--link-4))' },
[ScenarioStepType.API]: { label: 'report.detail.api', color: 'rgb(var(--link-4))' }, [ScenarioStepType.API]: { label: 'report.detail.api', color: 'rgb(var(--link-4))' },
[ScenarioStepType.API_SCENARIO]: { label: 'report.detail.api_scenario', color: 'rgba(167, 98, 191, 1)' },
[ScenarioStepType.CONSTANT_TIMER]: { label: 'apiScenario.waitTime', color: 'rgb(var(--warning-6))' },
}; };
const getClass = computed(() => { const getClass = computed(() => {

View File

@ -163,6 +163,9 @@
ScenarioStepType.IF_CONTROLLER, ScenarioStepType.IF_CONTROLLER,
ScenarioStepType.ONCE_ONLY_CONTROLLER, ScenarioStepType.ONCE_ONLY_CONTROLLER,
ScenarioStepType.TEST_PLAN_API_CASE, ScenarioStepType.TEST_PLAN_API_CASE,
ScenarioStepType.API_SCENARIO,
ScenarioStepType.CONSTANT_TIMER,
ScenarioStepType.SCRIPT,
]); ]);
function getShowExpand(item: ScenarioItemType) { function getShowExpand(item: ScenarioItemType) {

View File

@ -70,6 +70,9 @@
ScenarioStepType.LOOP_CONTROLLER, ScenarioStepType.LOOP_CONTROLLER,
ScenarioStepType.IF_CONTROLLER, ScenarioStepType.IF_CONTROLLER,
ScenarioStepType.ONCE_ONLY_CONTROLLER, ScenarioStepType.ONCE_ONLY_CONTROLLER,
ScenarioStepType.API_SCENARIO,
ScenarioStepType.CONSTANT_TIMER,
ScenarioStepType.SCRIPT,
]); ]);
</script> </script>

View File

@ -290,6 +290,9 @@
ScenarioStepType.IF_CONTROLLER, ScenarioStepType.IF_CONTROLLER,
ScenarioStepType.ONCE_ONLY_CONTROLLER, ScenarioStepType.ONCE_ONLY_CONTROLLER,
ScenarioStepType.TEST_PLAN_API_CASE, ScenarioStepType.TEST_PLAN_API_CASE,
ScenarioStepType.API_SCENARIO,
ScenarioStepType.CONSTANT_TIMER,
ScenarioStepType.SCRIPT,
]); ]);
function getShowExpand(item: ScenarioItemType) { function getShowExpand(item: ScenarioItemType) {
if (props.showType === 'API') { if (props.showType === 'API') {

View File

@ -51,6 +51,7 @@ export default {
'report.detail.api.apiCase': 'Api Case', 'report.detail.api.apiCase': 'Api Case',
'report.detail.api.customRequest': 'Custom request', 'report.detail.api.customRequest': 'Custom request',
'report.detail.api': 'Api', 'report.detail.api': 'Api',
'report.detail.api_scenario': 'Scenario',
'report.detail.api.resBody': 'response body', 'report.detail.api.resBody': 'response body',
'report.detail.api.resHeader': 'headers', 'report.detail.api.resHeader': 'headers',
'report.detail.api.realReq': 'real request', 'report.detail.api.realReq': 'real request',

View File

@ -49,6 +49,7 @@ export default {
'report.detail.api.apiCase': '接口用例', 'report.detail.api.apiCase': '接口用例',
'report.detail.api.customRequest': '自定义请求', 'report.detail.api.customRequest': '自定义请求',
'report.detail.api': '接口定义', 'report.detail.api': '接口定义',
'report.detail.api_scenario': '场景用例',
'report.detail.api.resBody': '响应体', 'report.detail.api.resBody': '响应体',
'report.detail.api.resHeader': '响应头', 'report.detail.api.resHeader': '响应头',
'report.detail.api.realReq': '实际请求', 'report.detail.api.realReq': '实际请求',