feat(接口测试): 接口定义增加客户端实现配置

--story=1010674 --user=王孝刚 【接口测试】接口定义增加客户端实现配置
https://www.tapd.cn/55049933/s/1312704
This commit is contained in:
wxg0103 2022-12-05 15:19:13 +08:00 committed by fit2-zhao
parent 7871f3db06
commit 4df9e8ad47
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,8 @@ public class MsHTTPSamplerProxy extends MsTestElement {
private String alias; private String alias;
private boolean customizeReq; private boolean customizeReq;
private final static String DEF_TIME_OUT = "60000"; private final static String DEF_TIME_OUT = "60000";
//客户端实现
private String implementation;
@Override @Override
public void toHashTree(HashTree tree, List<MsTestElement> hashTree, MsParameter msParameter) { public void toHashTree(HashTree tree, List<MsTestElement> hashTree, MsParameter msParameter) {
@ -125,6 +127,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
sampler.setContentEncoding(StandardCharsets.UTF_8.name()); sampler.setContentEncoding(StandardCharsets.UTF_8.name());
sampler.setFollowRedirects(this.isFollowRedirects()); sampler.setFollowRedirects(this.isFollowRedirects());
sampler.setAutoRedirects(this.isAutoRedirects()); sampler.setAutoRedirects(this.isAutoRedirects());
sampler.setImplementation(this.getImplementation());
sampler.setUseKeepAlive(true); sampler.setUseKeepAlive(true);
sampler.setDoMultipart(this.isDoMultipartPost()); sampler.setDoMultipart(this.isDoMultipartPost());
if (config.getConfig() == null) { if (config.getConfig() == null) {