无法在 jmeter 中记录浏览器操作 [英] Can not record browser action in jmeter

查看:27
本文介绍了无法在 jmeter 中记录浏览器操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 apache-jmeter-2.6.我想使用 HTTP 代理服务器记录浏览器操作.但是动作没有记录.

我已经在线程组下定义了 HTTP 请求默认值,我已经为服务器名称提供了如下所示的值:

第 2 步:运行您的 Jmeter.bat 文件并在 文件 下拉列表下打开模板,然后单击创建".

步骤 3: 展开 Work Bench 并选择 HTTP(s) 测试脚本记录器".然后点击页面底部的开始".您将有两个弹出窗口允许防火墙和临时根 CA 认证安装.允许所有这些,现在转到您的浏览器并执行您的浏览器活动.完成后停止"HTTP(s) 测试脚本记录器.

Step4:此后,您将在 JMeter 中获取记录器脚本以及浏览器中的所有活动.它将在 线程组下自动更新.此脚本将包含所有您在浏览活动期间的页面请求.录制后的示例脚本如下所示.

希望这对你有用.

I am using apache-jmeter-2.6. I want to record browser action using HTTP Proxy Server. But The actions are not recording.

I have defined HTTP Request Defaults under Thread Group,I have given value for the server name that looks like this:

http://www.xxxxx.com:81/

And I left the Port Number field empty as it is given with the Server Name.

In HTTP Proxy Server under workbench, I have given the Port value:81 and added ".*.html" in URL Patterns to include.

I have set the proxy server setting in firefox browser with Port:81 and Http Proxy: www.xxxxx.com

Now when I start the proxy server in jmeter and do different actions in my browser, i get nothing in my listener which is 'View Result Tree'.

I have searched for the ApacheJMeterTemporaryRootCA.crt file in different directories of my pc so that I can install it in my browser but did not find it anywhere, seems it is not created.

I have also deleted proxyserver.jks and then tried everything again, but no success.

What am i doing wrong here? How do i fix this?

My java version is 1.8.0_77.

Thank You.

解决方案

First of all I recommend you to upgrade your JMeter version.JMeter 2.13 version is available.The performance of JMeter is being constantly improved, so users are highly encouraged to use the most up to date version. Ensure you always read changes list to be aware of new improvements and components. You should absolutely avoid using versions that are older than 3 versions before the last one.

Here is the step by step process of recording browsers action.

Step1: Open your Firefox browser and from Network Connection settings configure the proxy server as HTTP Proxy: 127.0.0.1, Port: 8888

Step2: Run your Jmeter.bat file and open Templates under File dropdown list and click "Create".

Step3: Expand Work Bench and select "HTTP(s) Test Script Recorder". And click "Start" at the bottom of the page.You will have two pop up to Allow Firewall and Temporary Root CA Certification Installation.Allow all those and now go to your browser and do your browser activity.When its done "Stop" the HTTP(s) Test Script Recorder.

Step4: After this you will get the recorder script in JMeter with all your activity in the browser.It will automatically update under Thread Group.This script will contain all your page requests during browsing activity. Sample script after recording is shown below.

Hope this will work for you.

这篇关于无法在 jmeter 中记录浏览器操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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