WebSocketConnect FREE

Use this Plugin to make Websocket Connection,send and receive messages.

280

Same Test Case to use the plugin

//Sample server String destUri = "ws://echo.websocket.org";

String msg ="This is test API request"

socket = CustomKeywords.'websocketConnection.WebSocketConnect.CreateWebSocketConnection'() CustomKeywords.'websocketConnection.WSclient.CreateClient'(destUri,socket) socket.sendMessage(msg)

// wait for socket connection to close
socket.awaitClose(5,TimeUnit.SECONDS);

System.out.printf("Message has reached me : %s%n",socket.reply);

Visit Katalon Forum for Plugin related discussions.

5.0
1 Rating(s)
Namal Fernando
October 21, 2020

Code must be changed like this. import java.util.concurrent.TimeUnit import websocketConnection.WebSocketConnect String destUri = "ws://echo.websocket.org"; String msg ="This is test API request" WebSocketConnect socket = CustomKeywords.'websocketConnection.WebSocketConnect.CreateWebSocketConnection'() CustomKeywords.'websocketConnection.WSclient.CreateClient'(destUri,socket) socket.sendMessage(msg) // wait for socket connection to close socket.awaitClose(5,TimeUnit.SECONDS); System.out.printf("Message has reached me : %s%n",socket.reply); You can cross check the ws endpoint with Smart Websocket Client extension

API keys are required in Katalon Studio Commandline Execution. Generate Key
Information
Project details
Version
2.0.0
Type
Custom Keywords Plugin
Last updated
December 31, 2019 4:11 am
Publisher
Privacy and License Agreement