界面:
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 =
}
界面:
Jmeter源码之HTTP Request Sampler分析(五)
HttpTestSampleGui.java, line:163
布局中主要的代码:
init(){
new UrlConfigGui() 对应组件是

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