diff --git a/test-track/frontend/src/business/common/minder/TestCaseMinder.vue b/test-track/frontend/src/business/common/minder/TestCaseMinder.vue index 8aec888c63..489bd179c0 100644 --- a/test-track/frontend/src/business/common/minder/TestCaseMinder.vue +++ b/test-track/frontend/src/business/common/minder/TestCaseMinder.vue @@ -493,6 +493,9 @@ export default { if (module.level > 8) { this.throwError(this.$t('commons.module_deep_limit')); } + if (module.name.trim().length > 100) { + this.throwError( this.$t('test_track.module.name') + this.$t('test_track.length_less_than') + 100); + } this.saveModules.push(module); }, buildExtraNode(data, parent, root) { @@ -656,6 +659,10 @@ export default { testCase.id = getUUID(); data.newId = testCase.id; } + + if (testCase.name.length > 255) { + this.throwError( this.$t('api_test.home_page.failed_case_list.table_coloum.case_name') + this.$t('test_track.length_less_than') + 255); + } this.saveCases.push(testCase); } if (testCase.nodeId !== 'root' && testCase.nodeId.length < 15) {