please help , I'm connecting to the server through websocket sampler using jmeter , when I send the request to server name https://servername , this error is displayed [ - Invalid URI syntax: Expected closing bracket for IPv6 address at index 13: wss://[https://servername]:8000/?] , when I remove the https protocol , the request is not sent and not displayed in listener and the data is not updated in DB
You should be placing any protocol into Server Name or IP field. Theoretically you can put
https://servername:8000 into "Path" input, but I it won't work as WebSocket expects only
The WebSocket protocol specification defines ws and wss as two new uniform resource identifier (URI) schemes that are used for unencrypted and encrypted connections, respectively. Apart from the scheme name and fragment (# is not supported), the rest of the URI components are defined to use URI generic syntax.
If you don't see the request, most probably you configured WebSocket Sampler incorrectly as if you leave response and/or close connection pattern blank WebSocket Sampler will wait for the response for 20 seconds (or whatever you have define as a connection Timeout)
See WebSocket Testing With Apache JMeter article for more information and example test plan.