英文:
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应用程序的网络活动,但你需要采取一些额外的步骤:
- 将JMeter的证书导入到你的模拟器中
- 配置模拟器使用JMeter作为代理
- 修改你的应用程序的网络安全配置,就像配置Android设备进行代理录制文章中所描述的那样
- 现在应该能够进行录制了
英文:
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:
- Import JMeter's certificate to your emulator
- Configure the emulator to use JMeter as the proxy
- Amend your application network security configuration like it's described in Configure Android Devices for Proxy Recording article
- You should be able to record now
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论