简体   繁体   English

无法在代理后面运行 Jmeter

[英]Unable to run Jmeter behind proxy

My test objective is to monitor performance of native mobile app .我的测试目标是监控本机移动应用程序的性能。 For that I choose Jmeter v5.2.1 .为此,我选择 Jmeter v5.2.1 。 I have downloaded jmeter on my laptop .我已经在我的笔记本电脑上下载了 jmeter。 I make sure ApacheJMeterTempararyRootCA.crt is on my prosurface .(where I have downloaded native mobile app) .我确保 ApacheJMeterTempararyRootCA.crt 在我的 prosurface 上。(我在那里下载了本机移动应用程序)。

I have configured prosurface device to same wifi connection as my laptop where jmeter runs .我已将 prosurface 设备配置为与运行 jmeter 的笔记本电脑相同的 wifi 连接。 Amended proxy address and given port that is given in jmeter running in my laptop .修改了在我的笔记本电脑上运行的 jmeter 中给出的代理地址和给定端口。

I have started running Jmeter and mobile app .But nothing is getting recorded in HTTP(s) Test Script Recorder.我已经开始运行 Jmeter 和移动应用程序。但是 HTTP(s) 测试脚本记录器中没有记录任何内容。 And internet is not working in prosurface when I change the proxy .当我更改代理时,互联网在 prosurface 中不起作用。

I have changed proxy in option>internet options >connections>LAN settings>checked 'Use a proxy server for your LAN' and entered IP address and port .我在选项>互联网选项>连接>局域网设置>中更改了代理>选中“为局域网使用代理服务器”并输入 IP 地址和端口。

Can someone please suggest what need to be done .有人可以建议需要做什么。

Most of Jmeter articles are on Android and iOS .Can some one suggest me article on for windows .大多数 Jmeter 文章都是关于 Android 和 iOS 的。有人可以推荐我关于 Windows 的文章吗?

You need to install JMeter's self-signed certificate ( ApacheJMeterTempararyRootCA.crt ) into Trusted Root Certification Authorities Certificate Store您需要将 JMeter 的自签名证书 ( ApacheJMeterTempararyRootCA.crt ) 安装到Trusted Root Certification Authorities Certificate Store

在此处输入图片说明

You might also need to explicitly set system-wide proxy to use JMeter via netsh您可能还需要显式设置系统范围的代理以通过netsh使用 JMeter

在此处输入图片说明

just replace localhost with the hostname or ip address of the machine where JMeter is running at.只需将localhost替换为运行 JMeter 的机器的主机名或 IP 地址。 If you have JMeter on the tablet - you might need to install a special loopback network adapter如果平板电脑上有 JMeter - 您可能需要安装一个特殊的环回网络适配器

More information: How to Run Performance Tests of Desktop Applications Using JMeter更多信息: 如何使用 JMeter 运行桌面应用程序的性能测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM