GithubHelp home page GithubHelp logo

111111efe / fiddler2jmeter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dperfly/fiddler2jmeter

1.0 1.0 1.0 107.25 MB

jmeter脚本录制工具:将Fiddler/Charles转换成jmeter4.0以上脚本,支持过滤功能

Python 100.00%

fiddler2jmeter's Introduction

Fiddler 或 Charles 文件转换为 Jmeter4.0以上脚本

Image text
解决脚本录制问题,可以将Fiddler或Charles转换成对应的Jmeter脚本,实现部分内容的参数化配置,通过修改部分参数或参数化可以对http协议的接口进行自动化测试或简单的压力测试
博客地址:https://www.cnblogs.com/fbyyx/p/12827415.html

操作步骤

1.1 打开Fiddler/Charles录制请求
1.1.1 Fiddler录制
Image text
1.1.2 Charles录制
Image text
1.2 将需要的HTTP请求导出
1.2.1 Fiddler导出为saz格式
Image text
1.2.1 Charles导出为chlsj格式
Image text
1.3 执行脚本
1.3.1 参数说明
1.3.1.1 需要导入的文件:saz文件(Fiddler文件),chlsj(Charles文件)
1.3.1.2 需要到处的文件:jmx文件(生成的jmeter脚本文件)
1.3.1.3 过滤Http请求:不满足host则过滤,为正则匹配方式
1.3.1.4 过滤Http请求,通过/path部分,满足则过滤,为正则匹配方式
1.3.2 页面效果
Image text
1.3.3 结果展示
Image text
1.4 jmeter运行结果
Image text

注意

1.注意HTTPS 抓包工具需要安装证书否则导出的请求的method 为 CONNECT,执行脚本时会忽略CONNECT
2.根据导入文件的后缀进行判断切记不要改后缀名
3.有bug记得邮件告知或者微信:[email protected] 记得附带Fiddler或者Charles导出文件,方便定位问题
4.目前只考虑windows系统
Image text

TODO

1.目前只支持GET和POST请求
2.jmeter低版本暂不支持,目前导出的脚本是jmeter4.0以上版本,可以导出后手动转换低版本jmeter脚本,后续完善
3.Charles其他格式的支持

fiddler2jmeter's People

Contributors

dperfly avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ilove0518

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.