Jmeter源码之HTTP Request Sampler分析

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jmeter源码之HTTP Request Sampler分析相关的知识,希望对你有一定的参考价值。

界面:
技术分享图片

数据:
{
HTTPsampler.Arguments == {
"loginProtectStatus": $ {
loginProtectStatus
},
"password": "${movepassword}"
}(),
TestElement.gui_class = org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui,
TestElement.test_class = org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy,
TestElement.name = 3 _登录后设置密码接口,
TestElement.enabled = true,
HTTPSampler.postBodyRaw = true,
HTTPSampler.domain = $ {
Ip
},
HTTPSampler.port = ,
HTTPSampler.protocol = ,
HTTPSampler.contentEncoding = ,
HTTPSampler.path = /user/setPasswordAfterLogin,
HTTPSampler.method = POST,
HTTPSampler.follow_redirects = true,
HTTPSampler.auto_redirects = false,
HTTPSampler.use_keepalive = true,
HTTPSampler.DO_MULTIPART_POST = false,
HTTPSampler.embedded_url_re = ,
HTTPSampler.connect_timeout = ,
HTTPSampler.response_timeout =
}
界面:
技术分享图片
HttpTestSampleGui.java, line:163
布局中主要的代码:
init(){
new UrlConfigGui() 对应组件是

new JTabbedPane() 是选项卡用来装Parameters/Body Data/Files Upload
new JSplitPane(JSplitPane.VERTICAL_SPLIT,// 是 把界面分为剩下两部分
}

以上是关于Jmeter源码之HTTP Request Sampler分析的主要内容,如果未能解决你的问题,请参考以下文章

Jmeter请求元件之Jmeter request 发送get请求和post请求

Jmeter源码之Http请求布局样式修改

Jmeter之入门基础-HTTP

编译jmeter5.0源码

jmeter5.0之源码导入 IntelliJ IDEA

Jmeter之JDBC Request (Mysql)