refactor(测试跟踪): 用例导入表头为空时,提示优化
--bug=1025976 --user=陈建星 【测试跟踪】功能用例-导入excel格式-第一行为空-提示信息不明确 https://www.tapd.cn/55049933/s/1368450
This commit is contained in:
parent
12ef7823b7
commit
c584953122
|
@ -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);
|
||||
|
|
|
@ -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!
|
||||
|
|
|
@ -206,3 +206,4 @@ serial=串行
|
|||
parallel=并行
|
||||
rerun_warning=报告正在重跑中,稍后查看
|
||||
case_export_text_validate_tip=用例 %s 包含超长文本,目前支持最大长度为 %s !
|
||||
case_import_table_header_not_exist=缺少表头信息!
|
||||
|
|
|
@ -206,3 +206,4 @@ serial=串行
|
|||
parallel=並行
|
||||
rerun_warning=報告正在重跑中,稻後查看
|
||||
case_export_text_validate_tip=用例 %s 包含超長文本,目前支持最大長度為 %s !
|
||||
case_import_table_header_not_exist=缺少表頭信息!
|
||||
|
|
Loading…
Reference in New Issue