Jmeter效能測試工具學習(6.取樣器詳細解析)
阿新 • • 發佈:2018-11-15
取樣器(Sampler)
主要工作的元件
每個取樣器都有自己的“個性”和特點
個性?
1、每種取樣器對應相應的協議
2、在取樣器背後都是網路協議的包裝
3、學好取樣器關鍵的點要了解相應的協議
常規設定
1、取樣器預設實現 –檢視 jmeter.httpsampler
2、檔案的上傳和下載
3、 預設解析器是:htmlparser 通過檢視htmlparser.classname
4、通過設定 Retrieve All Embedded Resources from HTML Files 和 Use concurrent pool更 真實的模擬負載。
5、 URLs must match If present, this must be a regular expression that is used to match against any embedded URLs found. So if you only want to download embedded resources from http://example.com/, use the expression: http://example\.com/.*
6、 IP欺騙
7、file協議