fix(接口自动化): 修复执行部分缺陷

This commit is contained in:
fit2-zhao 2021-04-20 19:05:45 +08:00 committed by fit2-zhao
parent b6b649b679
commit 195fd95687
8 changed files with 12 additions and 9 deletions

View File

@ -404,7 +404,7 @@ public class ApiAutomationService {
env.setFullUrl(false);
}
}
} else if (StringUtils.equals(tr.getType(), "TCPSampler")) {
} else if (StringUtils.equals(tr.getType(), "JDBCSampler") || StringUtils.equals(tr.getType(), "TCPSampler")) {
if (StringUtils.equals(tr.getRefType(), "CASE")) {
ApiTestCaseWithBLOBs apiTestCaseWithBLOBs = apiTestCaseService.get(tr.getId());
env.getProjectIds().add(apiTestCaseWithBLOBs.getProjectId());

View File

@ -41,7 +41,7 @@
<script>
import {parseEnvironment} from "@/business/components/api/test/model/EnvironmentModel";
import ApiEnvironmentConfig from "@/business/components/api/definition/components/environment/ApiEnvironmentConfig";
import ApiEnvironmentConfig from "@/business/components/api/test/components/ApiEnvironmentConfig";
export default {
name: "ApiScenarioEnv",

View File

@ -239,7 +239,7 @@
import {ELEMENT_TYPE, ELEMENTS} from "./Setting";
import MsApiCustomize from "./ApiCustomize";
import {getUUID, objToStrMap, strMapToObj, handleCtrlSEvent} from "@/common/js/utils";
import ApiEnvironmentConfig from "../../definition/components/environment/ApiEnvironmentConfig";
import ApiEnvironmentConfig from "@/business/components/api/test/components/ApiEnvironmentConfig";
import MsInputTag from "./MsInputTag";
import MsRun from "./DebugRun";
import MsApiReportDetail from "../report/ApiReportDetail";

View File

@ -32,8 +32,7 @@
<script>
import {parseEnvironment} from "@/business/components/api/test/model/EnvironmentModel";
import ApiEnvironmentConfig from "@/business/components/api/definition/components/environment/ApiEnvironmentConfig";
import {ELEMENTS} from "./Setting";
import ApiEnvironmentConfig from "@/business/components/api/test/components/ApiEnvironmentConfig";
export default {
name: "EnvironmentSelect",

View File

@ -144,7 +144,7 @@
import {ELEMENT_TYPE, ELEMENTS} from "../Setting";
import MsApiCustomize from "../ApiCustomize";
import {getUUID, strMapToObj} from "@/common/js/utils";
import ApiEnvironmentConfig from "../../../definition/components/environment/ApiEnvironmentConfig";
import ApiEnvironmentConfig from "@/business/components/api/test/components/ApiEnvironmentConfig";
import MsInputTag from "../MsInputTag";
import MsRun from "../DebugRun";
import MsApiReportDetail from "../../report/ApiReportDetail";

View File

@ -25,7 +25,7 @@
<script>
import {parseEnvironment} from "../../model/EnvironmentModel";
import ApiEnvironmentConfig from "../../../definition/components/environment/ApiEnvironmentConfig";
import ApiEnvironmentConfig from "@/business/components/api/test/components/ApiEnvironmentConfig";
export default {
name: "EnvironmentSelect",

View File

@ -146,7 +146,11 @@
}
},
created() {
this.getEnvironments();
if(this.isScenario){
this.initDataSource();
}else{
this.getEnvironments();
}
},
computed: {
projectId() {

View File

@ -30,7 +30,7 @@
<script>
import {parseEnvironment} from "@/business/components/api/test/model/EnvironmentModel";
import ApiEnvironmentConfig from "@/business/components/api/definition/components/environment/ApiEnvironmentConfig";
import ApiEnvironmentConfig from "@/business/components/api/test/components/ApiEnvironmentConfig";
export default {
name: "EnvironmentSelect",