mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 20:19:16 +08:00
fix(测试跟踪): 修复测试计划执行时取消使用资源池,但是依然会根据下拉框选择的资源池进行执行的问题
--bug=1025386 --user=宋天阳 【测试跟踪】github #23610,测试计划执行,资源池取消勾选,选中的资源池未清空 https://www.tapd.cn/55049933/s/1362869
This commit is contained in:
parent
7075861db8
commit
269184fe2c
@ -119,6 +119,14 @@
|
||||
<span>{{ fileBranch }}</span>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
v-if="isRepositoryFile()"
|
||||
:label="$t('project.project_file.file.path')"
|
||||
prop="type"
|
||||
>
|
||||
<span>{{ data.path }}</span>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item :label="$t('load_test.file_type')" prop="type">
|
||||
<span>{{ data.type }}</span>
|
||||
</el-form-item>
|
||||
|
@ -2000,6 +2000,11 @@ public class TestPlanService {
|
||||
RunModeConfigDTO runModeConfig = getRunModeConfigDTO(testplanRunRequest, envType, envMap, environmentGroupId, testPlanId);
|
||||
runModeConfig.setTestPlanDefaultEnvMap(testplanRunRequest.getTestPlanDefaultEnvMap());
|
||||
|
||||
if (!testplanRunRequest.isRunWithinResourcePool()) {
|
||||
//未勾选资源池运行时,将资源池ID赋空
|
||||
runModeConfig.setResourcePoolId(null);
|
||||
}
|
||||
|
||||
String apiRunConfig = JSON.toJSONString(runModeConfig);
|
||||
return this.runTestPlan(testPlanId, testplanRunRequest.getProjectId(),
|
||||
testplanRunRequest.getUserId(), testplanRunRequest.getTriggerMode(), testplanRunRequest.getReportId(), testplanRunRequest.getExecutionWay(), apiRunConfig);
|
||||
|
Loading…
Reference in New Issue
Block a user