ITeye博客

录制Jmeter脚本

xmeteor · 2012-12-28 15:37 · 开源软件 · Markdown

录制Jmeter脚本有两个简单的方法:

  1. 使用Badboy录制,比较简单 http://www.badboy.com.au/

  2. 使用Jmeter的Http代理服务器 http://www.cnblogs.com/wdpp/archive/2011/04/25/2386263.html

  3. 在“WorkBench”右键 -> “Add” -> “Non-Test Elements” -> “HTTP Proxy Server”;

  4. 在“HTTP Proxy Server”窗口的的“Test plan content” -> “Target controller:”选项中选择“Use Recording Controller”;

  5. 在“HTTP Proxy Server”窗口的的“Test plan content” -> “Grouping:”选项中选择“Do not group samplers”;

  6. 在“Test Plan”下新建一个“Thread Group”;

  7. 在“HTTP Proxy Server”窗口底部,启动代理;

  8. 设置自己的浏览器使用代理,地址是localhost:8080,其中的端口可以在“HTTP Proxy Server”窗口中修改;

  9. 用浏览器访问需要测试的站点,做一些操作,然后就可以在新建的“Thread Group”下看到每一个请求的情况,当然也可以通过修改“HTTP Proxy Server”的配置参数来设置过滤条件。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。