fix(接口测试): 修复插件被删除的场景导出没有提示的缺陷

--bug=1027229 --user=王孝刚 【接口测试】场景-导出jmeter格式失败
https://www.tapd.cn/55049933/s/1385642
This commit is contained in:
wxg0103 2023-06-25 18:05:20 +08:00 committed by fit2-zhao
parent e62bd30759
commit 910095265a
4 changed files with 6 additions and 1 deletions

View File

@ -1730,6 +1730,8 @@ public class ApiScenarioService {
if (!haveEnv) {
builder.append(apiScenarioWithBLOBs.getName()).append("; ");
}
} catch (RuntimeException e) {
MSException.throwException(Translator.get("scenario_warning"));
} catch (Exception e) {
MSException.throwException("场景:" + builder.toString() + "运行环境未配置,请检查!");
}

View File

@ -348,4 +348,5 @@ file_format_does_not_meet_requirements=File format does not meet requirements
url_is_not_valid=URL is not valid
scenario_step_parsing_error_check=Scenario step parsing error, check if plugin step is included!
pre_processor_env=global prescript
post_processor_env=global postscript
post_processor_env=global postscript
scenario_warning=The scene contains plugin steps, the plugin has been deleted and cannot be exported

View File

@ -368,3 +368,4 @@ url_is_not_valid=URL 格式不正确!
scenario_step_parsing_error_check=场景步骤解析错误,请检查是否包含插件步骤!
pre_processor_env=全局前置脚本
post_processor_env=全局后置脚本
scenario_warning=场景包含插件步骤,插件已删除不能导出

View File

@ -368,3 +368,4 @@ url_is_not_valid=URL 格式不正确!
scenario_step_parsing_error_check=場景步驟解析錯誤,檢查是否包含插件步驟!
pre_processor_env=全局前置腳本
post_processor_env=全局後置腳本
scenario_warning=場景包含挿件步驟,挿件已删除不能匯出