websocket
安装websocket插件
在jmeter菜单 选项总选择plugin manager,Available Plugins下 搜索websocket,点击安装;
我这边已经安装了,所以在Installed Plugins下
添加取样器
在取样器中找到WebSocket request-response Sampler
实战项目
这边以tomcat项目下的聊天室项目示例
项目目录:apache-tomcat-8.5.40\webapps\examples\websocket
访问地址:http://localhost:8080/examples/websocket/chat.xhtml
请求配置
IP:127.0.01
端口:8080
Path:/examples/websocket/chat
Request data:呼唤我
运行后,可以看到聊天室看见了我发送的消息