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")) {
|
||||
List<KeyValue> bodyParams = this.body.getBodyParams(sampler, this.getId());
|
||||
if (this.body.getType().equals("Form Data")) {
|
||||
sampler.setDoMultipart(true);
|
||||
}
|
||||
sampler.setArguments(httpArguments(bodyParams));
|
||||
}
|
||||
|
||||
|
|
|
@ -63,11 +63,11 @@
|
|||
<ms-api-body-file-upload :parameter="item"/>
|
||||
</el-col>
|
||||
|
||||
<!--<el-col v-if="type === 'body'" class="kv-select">-->
|
||||
<!--<el-input :disabled="isReadOnly" v-model="item.contentType" size="small"-->
|
||||
<!--@change="change" :placeholder="$t('api_test.request.content_type')" show-word-limit>-->
|
||||
<!--</el-input>-->
|
||||
<!--</el-col>-->
|
||||
<el-col v-if="type === 'body'" class="kv-select">
|
||||
<el-input :disabled="isReadOnly" v-model="item.contentType" size="small"
|
||||
@change="change" :placeholder="$t('api_test.request.content_type')" show-word-limit>
|
||||
</el-input>
|
||||
</el-col>
|
||||
|
||||
<el-col class="kv-delete">
|
||||
<el-button size="mini" class="el-icon-delete-solid" circle @click="remove(index)"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<api-list-container
|
||||
:is-api-list-enable="isApiListEnable"
|
||||
@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"
|
||||
border
|
||||
|
|
Loading…
Reference in New Issue