一、下载完成后,解压压缩包,将插件中的2个文件放入到Fiddler安装目录中
![](http://upload-images.jianshu.io/upload_images/5072029-7ff563ac88b372e7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/553/format/webp)
插件目录
![](http://upload-images.jianshu.io/upload_images/5072029-e9a095fe23f13f4a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/554/format/webp)
二、打开fiddler,设置测试时过滤的条件(抓包可以指定域名的请求)
![](http://upload-images.jianshu.io/upload_images/5072029-d3316e2275207fe0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/553/format/webp)
设置过滤条件
三、这里我们举个列子,使用fiddler抓包 www.oneapm.com官网,在抓包的过程中,我们可以添加页面注释,以方便后期我们在jmeter脚本中查看。
![](http://upload-images.jianshu.io/upload_images/5072029-b0728014a7c16c8f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/553/format/webp)
fiddler-重命名-M
四、导出jmx格式
![](http://upload-images.jianshu.io/upload_images/5072029-d572cbd9d76e1807.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/554/format/webp)
![](http://upload-images.jianshu.io/upload_images/5072029-84119f070bb0ce4a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/435/format/webp)
保存JMX格式
五、使用jmeter打开刚刚保存的jmx文件
在jmeter3.3版本中打开效果,自带添加查看结果树和页面断言结果
![](http://upload-images.jianshu.io/upload_images/5072029-b6aeef9887ea55e5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/554/format/webp)
jmeter 3.3
使用同样的脚本在jmeter2.13中打开
![](http://upload-images.jianshu.io/upload_images/5072029-410d27498881ab73.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/553/format/webp)
jmeter 2.13
PS:使用Fiddler抓包后,直接保存为jmx格式,完美的解决了Jmeter版本之间脚本不兼容的情况。同时也很大程度提过了工作效率。
作者:人生_0809
链接:https://www.jianshu.com/p/434d62f40ffd
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。