refactor(性能测试): 使用java作为http-client,设置连接超时60s

This commit is contained in:
Captain.B 2021-02-04 12:50:53 +08:00
parent f3fedcdb05
commit 072efeaf86
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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: [],