websocket sampler taking url as <servername>:<port>
I have configured websocker samplers.our application url format is wss://<servername>/<port> but in jmeter its taking as wss://<servername>:<port>.
It should take / instead of : so because of this websocket connection is not happening and finaly giving error.
How to handle to this in jmeter?
Comments (6)
-
repo owner -
I have entered servername and port in different field but issue is with / and : sign.
my application url is say echo.websocket.org/443 so I entered echo.websocket.org in servername and 443 in port field. but jmeter is taking url as echo.websocket.org:443 and its not reaching to actual destination as actual url is with / and not with : sign.
How to handle this?
-
repo owner If your application url really is echo.websocket.org/443, than the 443 part is not the port, but the path, so in that case you should enter /443 in the Path field. As you’re using wss (secure), you should also enter 443 in the Port field.
If 443 is the port, then the notation echo.websocket.org/443 is simply wrong and not according to URL format.
-
you mean to say <server name>/<port number> echo.websocket.org/443 is wrong url format using /
correct url format is using : sign
i.e <server name>:<port number> echo.websocket.org:443
-
repo owner Yes, if the 443 is meant to be the port number (which is very likely).
See https://en.wikipedia.org/wiki/URL and https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.1.0/com.ibm.cics.ts.internet.doc/topics/dfhtl_uricomp.html
-
repo owner - Log in to comment
See https://bitbucket.org/pjtr/jmeter-websocket-samplers/src/master/docs/request-response-sample.png. You should enter servername in the “Server name or IP” field, the port in the “Port” field. You can’t enter a full URL.