Book Image

JMeter Cookbook

By : Bayo Erinle
Book Image

JMeter Cookbook

By: Bayo Erinle

Overview of this book

Table of Contents (16 chapters)
JMeter Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Testing WebSocket-enabled applications


Another common wave of applications in today's flood of web applications is reactive real-time applications using WebSocket. WebSocket is a protocol that provides full-duplex bi-directional communication over a single TCP connection using default HTTP and HTTPS ports. Unlike other protocols, one connection is used for two-way communication for the WebSocket protocol. This makes it a good candidate for developing browser chat applications, gaming applications, real-time browser monitoring tools, and so on. It is supported on the majority of modern web browsers.

How to do it…

In this recipe, we will cover how to test WebSocket-enabled applications with JMeter:

  1. Download the JMeter WebSocket Sampler component from https://github.com/maciejzaleski/JMeter-WebSocketSampler/releases.

  2. Download the bundled ZIP containing the needed dependencies for the WebSocket Sampler component from http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.1.1.v20140108/.

  3. Install...