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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章