refactor(测试跟踪): 用例导入表头为空时,提示优化

--bug=1025976 --user=陈建星 【测试跟踪】功能用例-导入excel格式-第一行为空-提示信息不明确 https://www.tapd.cn/55049933/s/1368450
This commit is contained in:
chenjianxing 2023-05-04 17:25:34 +08:00 committed by jianxing
parent 12ef7823b7
commit c584953122
4 changed files with 7 additions and 0 deletions

View File

@ -139,6 +139,10 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener<Map<Integ
public void invoke(Map<Integer, String> data, AnalysisContext analysisContext) {
if (headMap == null) {
MSException.throwException(Translator.get("case_import_table_header_missing"));
}
Integer rowIndex = analysisContext.readRowHolder().getRowIndex();
handleMergeData(data, rowIndex);

View File

@ -235,3 +235,4 @@ serial=Serial
parallel=Parallel
rerun_warning=The report is being rerun, check it later
case_export_text_validate_tip=Use case %s contains extremely long text, currently supported up to %s!
case_import_table_header_missing=Header information is missing!

View File

@ -206,3 +206,4 @@ serial=串行
parallel=并行
rerun_warning=报告正在重跑中,稍后查看
case_export_text_validate_tip=用例 %s 包含超长文本,目前支持最大长度为 %s
case_import_table_header_not_exist=缺少表头信息!

View File

@ -206,3 +206,4 @@ serial=串行
parallel=並行
rerun_warning=報告正在重跑中,稻後查看
case_export_text_validate_tip=用例 %s 包含超長文本,目前支持最大長度為 %s
case_import_table_header_not_exist=缺少表頭信息!