Software Quality Assurance & Testing Asked on October 25, 2021
I am simply trying to launch an application with JMETER 5.2.1 for one user. The webserver SSL certification was recently updated because the previous certification had expired. Prior to that JMETER had no problems launching the app.
Now I am getting the error:
Response code:Non HTTP response code: org.apache.http.conn.HttpHostConnectException
Response message:Non HTTP response message: Connect to failed: Connection timed out: connect
When I go to the Chrome browser and enter the app ip I get that NET::ERR_CERT_COMMON_NAME_INVALID. After accepting the risk The application opens.
I have set the http request connect and response time values up to 8000. I have set the implementation to use HttpClient4.
I am wondering if I need to do something in the JMETER properties files in order to get the WEBSITE to accept JMeter now. I can get in via Chrome or Direfox. But JMETER fails(since the webserver ssl certification update).
Any advice to help me get JMETER running again would be appreciated.
HttpHostException is a sub-type of ConnectException which:
Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the connection was refused remotely (e.g., no process is listening on the remote address/port).
As per JMeter Documentation:
The JMeter HTTP samplers are configured to accept all certificates, whether trusted or not, regardless of validity periods, etc. This is to allow the maximum flexibility in testing servers.
So I strongly doubt that this is due to the change of the SSL configuration of the server, most probably your host/port combination is not correct under HTTP Request sampler (or HTTP Request Defaults)
If you want more verbose information on what's going on under the hood you can add:
javax.net.debug=all
in system.properties<Logger name="org.apache.http" level="debug" />
in log4j2.xmlAnswered by Dmitri T on October 25, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP