没有GUI的JMeter录制 [英] JMeter recording without GUI

查看:86
本文介绍了没有GUI的JMeter录制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用Apache JMeter记录HTTP-Traffic,以供以后播放. JMeter既支持录制非GUI模式来运行流量/测试,又支持内置的远程控制模式,以使用具有多个jmeter服务器的单个GUI客户端.

I'm currently trying to use Apache JMeter to record HTTP-Traffic for later playback. JMeter supports both recording an non-GUI-Mode to run Traffic/Tests, there even is a built in remote-control-mode to use a single GUI-Client with multiple jmeter-servers.

在我们的案例中,JMeter-Proxy必须在ubuntu-Server上运行,所以我不能在GUI上使用默认模式(从技术上讲,我可以通过使用X-Forwarding进行操作,但是那确实很棘手,我会为此失去编写脚本的任何可能性)

The JMeter-Proxy has to run on an ubuntu-Server in our case, so i can't use the default-mode with GUI (well technically i could, by using X-Forwarding, but thats a pretty uggly hack and i would lose any possibility of scripting against that)

本地GUI控制我的服务器机器上的jmeter-server的RC模式工作得很好,但是模块"HTTP(S)测试脚本记录器"在运行GUI的计算机上运行,​​因此我可以都不用.

The RC-Mode where the local GUI controlls the jmeter-server on my Server-Machine works pretty well, but the Module "HTTP(S) Test Script Recorder" is run on the Machine running the GUI, so i can't use that either.

另一方面,jmeter的non-gui-mode列出了可以在命令行上提供的一系列选项(jmeter -n和jmeter -h给出了列表和简短说明).根本没有提到记录流量.

The non-gui-mode of jmeter on the other hand lists a bunch of options one could supply on command line (jmeter -n and jmeter -h gives a list and short explanations). Recording traffic isn't mentioned there at all.

我想知道是否以及如何以这种方式使用JMeter(在不使用GUI的情况下记录流量),或者X-Forwarding确实是唯一的机会.

I would like to know if and how it's possible to use JMeter this way (recording traffic without GUI) or if X-Forwarding is really the only chance left.

推荐答案

是的,当然,您可以使用Chrome浏览器的插件-

Yes, of course, you can do it with plugin for Chrome browser - BlazeMeter Chrome Extension. It allows you to record JMeter script without running JMeter

这篇关于没有GUI的JMeter录制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆