天天看點

Jmeter源碼之HTTP Request Sampler分析(五)

界面:

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,// 是 把界面分為剩下兩部分