问题描述
我的应用程序有一个IPAD混合应用程序。它尝试在登录过程中点击我们的https服务器。我想用JMeter来记录这个简单的流程。
I have an IPAD hybrid app for our application. It tries to hit our https server during login process. I would like to use JMeter to record this simple flow.
我在本地机器上运行JMeter代理服务器。我更新了IPAD代理详细信息,以便任何活动都可以通过JMeter代理 - 这样我就可以记录。
I am running JMeter proxy server in my local machine. I updated IPAD proxy details so that any activity will go via JMeter proxy - so that i can record.
我能够在JMeter中记录我在Safari浏览器中执行的活动IPAD。但是,如果我在IPAD中访问我的应用程序,JMeter会将其作为http请求发送给我们。记录javax.net.ssl.sslhandshakeexception错误。在浏览器中,我可以接受SSL证书。不确定如何在IPad中完成。
I am able to record in JMeter the activities i do in Safari browser of the IPAD. But if i access my app in IPAD JMeter sends it as http request & records javax.net.ssl.sslhandshakeexception error . In the browser i can accept the SSL certificate. Not sure how it can be done in IPad.
我甚至尝试从我的浏览器导出证书,将其发送到我的电子邮件,在IPAD中访问并安装。它仍然无效。看起来它是JMeter颁发的临时证书。
I even tried to export the certificate from my browser , sent it to my email , accessed it in IPAD and installed. Still it does not work. Looks like it is a temporary certificate issued by JMeter.
如果不是https,那么JMeter将能够记录应用程序活动。
If it is not https, then JMeter will be able to record the app activities.
任何人都遇到过类似情况?你是如何解决的?
Anyone has faced similar situation? how did you rsolve this?
推荐答案
将jmeter 2.11与Java 7一起使用,它会在jmeter / bin文件夹中创建一个crt文件。
创建证书的是CA.
Use jmeter 2.11 with Java 7 , it creates a crt file in jmeter/bin folder.It is the CA that creates the certificates.
通过邮件发送此文件并在Ipad中打开并安装它。
Send this file by mail and open it in Ipad and install it.
在测试脚本记录器中,放入专用字段HTTPS域,您尝试命中的域名,请参阅:
In test script recorder, put in the dedicated field HTTPS domains , the domains you are trying to hit, see:
- http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder
重新启动Ipad和jmeter测试脚本记录器,然后重试。
Restart Ipad and jmeter test script recorder and try again.
这篇关于JMeter录制使用HTTPS的iOS本机应用程序会导致SSL握手问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!