feat(接口测试): 接口定义增加客户端实现配置
--story=1010674 --user=王孝刚 【接口测试】接口定义增加客户端实现配置 https://www.tapd.cn/55049933/s/1312704
This commit is contained in:
parent
7871f3db06
commit
4df9e8ad47
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue