Jmeter性能测试工具学习(6.采样器详细解析)

版权声明:版权归作者所有转载请标明出处https://blog.csdn.net/moveym https://blog.csdn.net/moveym/article/details/82702392

采样器(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协议

猜你喜欢

转载自blog.csdn.net/moveym/article/details/82702392