我想要负载测试的应用程序是一个购物车应用程序(服务器性能)。我已经尝试过Jmeter的购买场景,但问题是Jmeter不能记录登录,从下拉菜单中选择等操作。因为在回放时,录制的脚本不会创建任何用户会话,也不会发生购买。但Jmeter显示所有脚本都已成功运行。我想在手机上记录下每一个动作。这个问题有什么解决方案吗?除了Jmeter之外,我还需要使用其他工具吗?请帮帮忙。提前谢谢。
发布于 2017-05-18 20:06:24
如果您的应用程序发出HTTP (或HTTPS)请求- JMeter可以记录它(假设配置正确)
考虑到你能够记录一些请求,看起来你就快成功了,有几点需要考虑:
为了使JMeter能够解密和记录流量,您需要在移动设备上安装JMeter的自签名证书。
- Start JMeter's [HTTP(S) Test Scipt Recorder](http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S%29_Test_Script_Recorder)
- Locate `ApacheJMeterTemporaryRootCA.crt` file under JMeter's bin folder
- Transfer it somehow to mobile device (i.e. send it as an attachment to yourself and open the email on the mobile device)
- Click on the certificate in the email attachment and follow your mobile OS dialog to get it installed
proxy.cert.validity JMeter property以覆盖证书有效期并使其更长发布于 2017-05-19 00:46:33
JMeter有一个代理服务器,可以记录所有的HTTP/HTTPS记录。
这个网站有逐步的说明。
http://www.testautomationguru.com/jmeter-record-ios-application-http-requests/
https://stackoverflow.com/questions/44045800
复制相似问题