在将在Fiddler中记录的会话导入到JMeter后,无法运行这些会话。

huangapple go评论45阅读模式
英文:

After importing sessions recorded in Fiddler to jmeter, not able to run the sessions

问题

我想对移动应用程序进行性能测试,尝试通过JMeter在Android Studio模拟器上记录会话,但没有成功。然后我尝试了Fiddler工具,并成功记录了会话。但是当我尝试将这些会话导入JMeter时,我将其保存为HAR文件,然后转换为jmx文件,并在JMeter中运行。会话/采样器显示为只读,无法发出请求,但能够连接并从模拟器获得响应。我是否漏掉了什么?或者是否有其他测试移动应用程序性能的方法?

英文:

I wanted to do performance testing on the mobile application, tried to record sessions through JMeter with the android studio emulator which was not working and then tried with fiddler tool and was able to record sessions. But when I try to import those sessions to Jmeter I saved as HAR file and then converted to jmx file and made to run in Jmeter. The sessions/samplers were in read telling not able to make request and was able to connect and get response from the emulator. Is there anything I'm missing here? or Is there any other method to test performance of mobile applications?

答案1

得分: 0

很难在没有看到你的.jar和.jmx文件,并且不知道你如何“转换”.har文件的情况下说些什么。理论上,你可以使用你喜欢的文本/JSON编辑器查看.har文件,并手动创建相关的HTTP请求样本和HTTP标头管理器

一般来说,可以使用JMeter的HTTP(S)测试脚本录制器来记录Android应用程序的网络活动,但你需要采取一些额外的步骤:

  1. 将JMeter的证书导入到你的模拟器中
  2. 配置模拟器使用JMeter作为代理
  3. 修改你的应用程序的网络安全配置,就像配置Android设备进行代理录制文章中所描述的那样
  4. 现在应该能够进行录制了
英文:

It's hard to say anything without seeing your .jar and .jmx files and knowing how did you "convert" the .har. Theoretically you could take a look into .har file using your favourite text/json editor and create the relevant HTTP Request samplers and HTTP Header Managers manually.

In general it is possible to record Android application network activity using JMeter's HTTP(S) Test Script Recorder but you need to take some extra steps:

  1. Import JMeter's certificate to your emulator
  2. Configure the emulator to use JMeter as the proxy
  3. Amend your application network security configuration like it's described in Configure Android Devices for Proxy Recording article
  4. You should be able to record now

huangapple
  • 本文由 发表于 2023年7月17日 18:03:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76703363.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定