refactor(性能测试): 使用java作为http-client,设置连接超时60s
This commit is contained in:
parent
f3fedcdb05
commit
072efeaf86
|
@ -387,7 +387,8 @@ public class JmeterDocumentParser implements DocumentParser {
|
||||||
element.appendChild(createStringProp(document, "HTTPSampler.contentEncoding", ""));
|
element.appendChild(createStringProp(document, "HTTPSampler.contentEncoding", ""));
|
||||||
element.appendChild(createStringProp(document, "HTTPSampler.path", ""));
|
element.appendChild(createStringProp(document, "HTTPSampler.path", ""));
|
||||||
element.appendChild(createStringProp(document, "HTTPSampler.concurrentPool", "6"));
|
element.appendChild(createStringProp(document, "HTTPSampler.concurrentPool", "6"));
|
||||||
element.appendChild(createStringProp(document, "HTTPSampler.connect_timeout", ""));
|
element.appendChild(createStringProp(document, "HTTPSampler.implementation", "Java"));
|
||||||
|
element.appendChild(createStringProp(document, "HTTPSampler.connect_timeout", "60000"));
|
||||||
element.appendChild(createStringProp(document, "HTTPSampler.response_timeout", ""));
|
element.appendChild(createStringProp(document, "HTTPSampler.response_timeout", ""));
|
||||||
hashTree.appendChild(element);
|
hashTree.appendChild(element);
|
||||||
// 空的 hashTree
|
// 空的 hashTree
|
||||||
|
|
|
@ -128,7 +128,7 @@ export default {
|
||||||
components: {MsTableOperatorButton},
|
components: {MsTableOperatorButton},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timeout: 2000,
|
timeout: 60000,
|
||||||
responseTimeout: null,
|
responseTimeout: null,
|
||||||
statusCode: [],
|
statusCode: [],
|
||||||
domains: [],
|
domains: [],
|
||||||
|
|
Loading…
Reference in New Issue