fix(测试跟踪): 修复测试计划里接口用例批量执行选择新环境执行失效问题

--user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001020243
This commit is contained in:
guoyuqi 2022-11-24 16:18:32 +08:00 committed by xiaomeinvG
parent 64655aa424
commit 88ee7a57d7
2 changed files with 2 additions and 0 deletions

View File

@ -627,6 +627,7 @@ export default {
},
handleRunBatch(config) {
let obj = {planIds: this.testPlanCaseIds, config: config, triggerMode: "BATCH",projectId: getCurrentProjectID()};
obj.config.envMap = strMapToObj(config.envMap);
testPlanApiCaseRun(obj)
.then(() => {
this.$message(this.$t('commons.run_message'));

View File

@ -470,6 +470,7 @@ export default {
rows.forEach(row => {
this.buildExecuteParam(param, row);
});
param.config.envMap = strMapToObj(config.envMap);
param.condition = selectParam.condition;
param.triggerMode = "BATCH";
param.requestOriginator = "TEST_PLAN";