fix(测试跟踪): 测试计划只关联UI用例添加定时任务不需要校验资源池
--bug=1029935 --user=宋昌昌 【测试跟踪】测试计划只关联UI用例-应用管理接口执行资源池按钮关闭-执行测试计划提示选择资源池 https://www.tapd.cn/55049933/s/1413401
This commit is contained in:
parent
930476f914
commit
cebeb1003a
|
@ -489,12 +489,9 @@ export default {
|
|||
});
|
||||
},
|
||||
saveCron() {
|
||||
if (
|
||||
this.runConfig.resourcePoolId == null
|
||||
) {
|
||||
this.$warning(
|
||||
this.$t("workspace.env_group.please_select_run_within_resource_pool")
|
||||
);
|
||||
if ((this.haveOtherExecCase && this.testType === 'API') && this.runConfig.resourcePoolId == null) {
|
||||
// 只有接口场景配置Cron时, 才需要校验资源池
|
||||
this.$warning(this.$t("workspace.env_group.please_select_run_within_resource_pool"));
|
||||
return;
|
||||
}
|
||||
this.$refs["from"].validate((valid) => {
|
||||
|
@ -522,12 +519,8 @@ export default {
|
|||
if (!param.workspaceId) {
|
||||
param.workspaceId = getCurrentWorkspaceId();
|
||||
}
|
||||
if (
|
||||
this.runConfig.resourcePoolId == null
|
||||
) {
|
||||
this.$warning(
|
||||
this.$t("workspace.env_group.please_select_run_within_resource_pool")
|
||||
);
|
||||
if ((this.haveOtherExecCase && this.testType === 'API') && this.runConfig.resourcePoolId == null) {
|
||||
this.$warning(this.$t("workspace.env_group.please_select_run_within_resource_pool"));
|
||||
return;
|
||||
}
|
||||
param.config = JSON.stringify(this.runConfig);
|
||||
|
|
Loading…
Reference in New Issue