Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
628a99f697
|
@ -10,7 +10,7 @@
|
|||
:placeholder="$t('api_test.variable_name')" show-word-limit/>
|
||||
</el-col>
|
||||
<el-col>
|
||||
<el-input :disabled="isReadOnly" v-model="item.value" size="small" maxlength="2000" @change="change"
|
||||
<el-input :disabled="isReadOnly" v-model="item.value" size="small" @change="change"
|
||||
:placeholder="$t('api_test.value')" show-word-limit/>
|
||||
</el-col>
|
||||
<el-col class="kv-delete">
|
||||
|
|
|
@ -1,18 +1,22 @@
|
|||
import {
|
||||
Element,
|
||||
TestElement,
|
||||
HashTree,
|
||||
TestPlan,
|
||||
ThreadGroup,
|
||||
HeaderManager,
|
||||
HTTPSamplerProxy,
|
||||
HTTPSamplerArguments,
|
||||
Arguments,
|
||||
DubboSample,
|
||||
DurationAssertion,
|
||||
Element,
|
||||
HashTree,
|
||||
HeaderManager,
|
||||
HTTPSamplerArguments,
|
||||
HTTPSamplerProxy,
|
||||
JSONPathAssertion,
|
||||
JSONPostProcessor,
|
||||
RegexExtractor,
|
||||
ResponseCodeAssertion,
|
||||
ResponseDataAssertion,
|
||||
ResponseHeadersAssertion,
|
||||
RegexExtractor, JSONPostProcessor, XPath2Extractor, DubboSample, JSONPathAssertion,
|
||||
TestElement,
|
||||
TestPlan,
|
||||
ThreadGroup,
|
||||
XPath2Extractor,
|
||||
} from "./JMX";
|
||||
|
||||
export const uuid = function () {
|
||||
|
@ -285,6 +289,11 @@ export class HttpRequest extends Request {
|
|||
isValid: false,
|
||||
info: 'api_test.request.please_configure_environment_in_scenario'
|
||||
}
|
||||
} else if (!this.path) {
|
||||
return {
|
||||
isValid: false,
|
||||
info: 'api_test.request.input_path'
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!this.url) {
|
||||
|
@ -663,11 +672,12 @@ class JMXHttpRequest {
|
|||
this.protocol = url.protocol.split(":")[0];
|
||||
this.pathname = this.getPostQueryParameters(request, decodeURIComponent(url.pathname));
|
||||
} else {
|
||||
if (environment) {
|
||||
this.port = environment.port;
|
||||
this.protocol = environment.protocol;
|
||||
this.domain = environment.domain;
|
||||
let url = new URL(environment.protocol + "://" + environment.socket);
|
||||
this.path = this.getPostQueryParameters(request, decodeURIComponent(url.pathname));
|
||||
}
|
||||
this.path = this.getPostQueryParameters(request, decodeURIComponent(request.path));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -683,8 +693,8 @@ class JMXHttpRequest {
|
|||
});
|
||||
for (let i = 0; i < parameters.length; i++) {
|
||||
let parameter = parameters[i];
|
||||
path += (encodeURIComponent(parameter.name) + '=' + encodeURIComponent(parameter.value));
|
||||
if (i !== parameters.length - 1) {
|
||||
path += (parameter.name + '=' + parameter.value);
|
||||
if (i != parameters.length - 1) {
|
||||
path += '&';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue