fix(接口定义): 修复执行缺陷
This commit is contained in:
parent
15c18a0012
commit
6e75c66673
|
@ -110,7 +110,9 @@ 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);
|
||||||
config.setConfig(JSONObject.parseObject(environment.getConfig(), EnvironmentConfig.class));
|
if (environment != null && environment.getConfig() != null) {
|
||||||
|
config.setConfig(JSONObject.parseObject(environment.getConfig(), EnvironmentConfig.class));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (config != null && config.getConfig() != null) {
|
if (config != null && config.getConfig() != null) {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue