fix(接口自动化): form -data 格式执行缺陷修复
This commit is contained in:
parent
616d00024c
commit
460c1dc976
|
@ -162,6 +162,9 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
// 请求体
|
// 请求体
|
||||||
if (!StringUtils.equals(this.getMethod(), "GET")) {
|
if (!StringUtils.equals(this.getMethod(), "GET")) {
|
||||||
List<KeyValue> bodyParams = this.body.getBodyParams(sampler, this.getId());
|
List<KeyValue> bodyParams = this.body.getBodyParams(sampler, this.getId());
|
||||||
|
if (this.body.getType().equals("Form Data")) {
|
||||||
|
sampler.setDoMultipart(true);
|
||||||
|
}
|
||||||
sampler.setArguments(httpArguments(bodyParams));
|
sampler.setArguments(httpArguments(bodyParams));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,11 +63,11 @@
|
||||||
<ms-api-body-file-upload :parameter="item"/>
|
<ms-api-body-file-upload :parameter="item"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<!--<el-col v-if="type === 'body'" class="kv-select">-->
|
<el-col v-if="type === 'body'" class="kv-select">
|
||||||
<!--<el-input :disabled="isReadOnly" v-model="item.contentType" size="small"-->
|
<el-input :disabled="isReadOnly" v-model="item.contentType" size="small"
|
||||||
<!--@change="change" :placeholder="$t('api_test.request.content_type')" show-word-limit>-->
|
@change="change" :placeholder="$t('api_test.request.content_type')" show-word-limit>
|
||||||
<!--</el-input>-->
|
</el-input>
|
||||||
<!--</el-col>-->
|
</el-col>
|
||||||
|
|
||||||
<el-col class="kv-delete">
|
<el-col class="kv-delete">
|
||||||
<el-button size="mini" class="el-icon-delete-solid" circle @click="remove(index)"
|
<el-button size="mini" class="el-icon-delete-solid" circle @click="remove(index)"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<api-list-container
|
<api-list-container
|
||||||
:is-api-list-enable="isApiListEnable"
|
:is-api-list-enable="isApiListEnable"
|
||||||
@isApiListEnableChange="isApiListEnableChange">
|
@isApiListEnableChange="isApiListEnableChange">
|
||||||
<el-input placeholder="搜索" @blur="search" class="search-input" size="small" v-model="condition.name"/>
|
<el-input placeholder="搜索" @blur="search" class="search-input" size="small" @keyup.enter.native="search" v-model="condition.name"/>
|
||||||
|
|
||||||
<el-table v-loading="result.loading"
|
<el-table v-loading="result.loading"
|
||||||
border
|
border
|
||||||
|
|
Loading…
Reference in New Issue