fix(测试计划): #1008020 测试计划内单独执行场景,表格结果不更新

【手动执行测试计划内场景用例,执行完,用例最后结果没有更新】https://www.tapd.cn/33805590/bugtrace/bugs/view?bug_id=1133805590001008020
This commit is contained in:
song-tianyang 2021-11-21 00:08:31 +08:00 committed by song-tianyang
parent 98fbcf0d2e
commit 360e5f0975
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import com.github.pagehelper.PageHelper;
import io.metersphere.api.dto.automation.*;
import io.metersphere.commons.constants.ApiRunMode;
import io.metersphere.commons.constants.OperLogConstants;
import io.metersphere.commons.constants.RunModeConstants;
import io.metersphere.commons.utils.PageUtils;
import io.metersphere.commons.utils.Pager;
import io.metersphere.controller.request.ResetOrderRequest;
@ -68,6 +69,12 @@ public class TestPlanScenarioCaseController {
@MsAuditLog(module = "track_test_plan", type = OperLogConstants.EXECUTE, content = "#msClass.getLogDetails(#request.planCaseIds)", msClass = TestPlanScenarioCaseService.class)
public String run(@RequestBody RunTestPlanScenarioRequest request) {
request.setExecuteType(ExecuteType.Completed.name());
if(request.getConfig() == null){
RunModeConfig config = new RunModeConfig();
config.setMode(RunModeConstants.PARALLEL.toString());
config.setEnvMap(new HashMap<>());
request.setConfig(config);
}
return testPlanScenarioCaseService.run(request);
}