Jmeter:响应代码:非HTTP响应代码:javax.net.ssl.SSLHandshakeException [英] Jmeter: Response code: Non HTTP response code: javax.net.ssl.SSLHandshakeException

查看:417
本文介绍了Jmeter:响应代码:非HTTP响应代码:javax.net.ssl.SSLHandshakeException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序URL.我需要使用Jmeter运行登录测试.我使用chrome的blazemeter扩展记录了登录步骤.但是当我运行它时,我得到下面的错误.我知道有这样的问题,我尝试了很少,看来我的情况有所不同.

I have an application URL. I need to run login test using Jmeter. I recorded the login steps using blazemeter extension of chrome. But when I run it I get below error. I know there have been questions like this, I have tried few and it seems my case is different.

我已经尝试过:

  1. 在jmeter.bat中添加了这两行

  1. Added these two lines in jmeter.bat

set JAVA_HOME = C:\ Program Files \ Java \ jdk1.8.0_65 设置PATH =%JAVA_HOME%\ bin;%PATH%

set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_65 set PATH=%JAVA_HOME%\bin;%PATH%

使用以管理员身份运行"运行Jmeter

Run Jmeter using "Run as Administrator"

从此处下载证书 https://gist.github.com/borisguery/9ef114c53b83e553b635 并以这种方式安装 https://www.youtube.com/watch?v=2k581jcWk9M 重新启动Jmeter,然后重试,但是没有运气.

Download the certificate from here https://gist.github.com/borisguery/9ef114c53b83e553b635 and install it this way https://www.youtube.com/watch?v=2k581jcWk9M Restart the Jmeter but and try again but no luck.

当我在Jmeter View树侦听器中扩展错误时,在以下特定的CSS文件上出现错误:https://abcurl.xyzsample.com/assets/loginpage/css/okta-sign-in.min.7c7cfd15fa939095d61912dd8000a2a8.css

When I expand the error in Jmeter View tree listener I get error on this particular css file: https://abcurl.xyzsample.com/assets/loginpage/css/okta-sign-in.min.7c7cfd15fa939095d61912dd8000a2a8.css

错误:

Thread Name: Thread Group 1-1
Load time: 268
Connect Time: 0
Latency: 0
Size in bytes: 2256
Headers size in bytes: 0
Body size in bytes: 2256
Sample Count: 1
Error Count: 1
Response code: Non HTTP response code: javax.net.ssl.SSLHandshakeException
Response message: Non HTTP response message: Received fatal alert: handshake_failure

Response headers:


HTTPSampleResult fields:
ContentType: 
DataEncoding: null

推荐答案

如果您的网址需要客户端证书,则将证书复制到/bin 文件夹,如果要访问选项-> SSL管理器,然后选择您的证书,它会提示您输入证书密码.如果再次运行测试,那应该可以. 此外,您还可以进行密钥库配置( http://jmeter.apache.org/usermanual/component_reference.html#Keystore_Configuration )(如果尚未完成的话). 请注意,我的jmeter版本是4.0.希望这会有所帮助.

If your url needs a client certificate, then copy your cert to /bin folder and from the jmeter console if you go to options -> SSL Manager and select your cert , it would prompt you for the certificate password . And if you run your tests again , that should work . Additionally you can also do keystore configuraion (http://jmeter.apache.org/usermanual/component_reference.html#Keystore_Configuration) , if you haven't done already . Please Note that my jmeter version is 4.0 . Hope this helps .

这篇关于Jmeter:响应代码:非HTTP响应代码:javax.net.ssl.SSLHandshakeException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆