fix(接口定义): 修复执行缺陷

This commit is contained in:
fit2-zhao 2020-12-23 17:34:21 +08:00
parent 15c18a0012
commit 6e75c66673
2 changed files with 4 additions and 2 deletions

View File

@ -110,8 +110,10 @@ public class MsHTTPSamplerProxy extends MsTestElement {
if (useEnvironment != null) { if (useEnvironment != null) {
ApiTestEnvironmentService environmentService = CommonBeanFactory.getBean(ApiTestEnvironmentService.class); ApiTestEnvironmentService environmentService = CommonBeanFactory.getBean(ApiTestEnvironmentService.class);
ApiTestEnvironmentWithBLOBs environment = environmentService.get(useEnvironment); ApiTestEnvironmentWithBLOBs environment = environmentService.get(useEnvironment);
if (environment != null && environment.getConfig() != null) {
config.setConfig(JSONObject.parseObject(environment.getConfig(), EnvironmentConfig.class)); config.setConfig(JSONObject.parseObject(environment.getConfig(), EnvironmentConfig.class));
} }
}
try { try {
if (config != null && config.getConfig() != null) { if (config != null && config.getConfig() != null) {
String url = ""; String url = "";

View File

@ -1,5 +1,5 @@
<template> <template>
<el-dialog :close-on-click-modal="false" :title="$t('api_test.definition.request.title')" :visible.sync="visible" <el-dialog :close-on-click-modal="false" :title="$t('api_test.automation.add_scenario')" :visible.sync="visible"
width="45%" width="45%"
:destroy-on-close="true"> :destroy-on-close="true">
<el-form :model="scenarioForm" label-position="right" label-width="80px" size="small" :rules="rule" <el-form :model="scenarioForm" label-position="right" label-width="80px" size="small" :rules="rule"