Skip to content

koosty/gatling-tcp-plugin

Gatling TCP Plugin

Build Quality Gate Status

A plugin for Gatling to enable TCP protocol support in load tests.

Features

  • TCP protocol support for Gatling
  • Custom simulation examples
  • Easy configuration

Installation

Add this plugin as a dependency to your Gatling project.

<dependency>
    <groupId>io.github.koosty</groupId>
    <artifactId>gatling-tcp-plugin</artifactId>
    <version>[VERSION]</version>
</dependency>

Search for the latest version on Maven Central.

Usage

public class TestSimulation extends Simulation {

    TcpProtocolBuilder tcpConfig = tcp()
            .host("localhost")
            .port(2222);

    ScenarioBuilder scn = scenario("TEST")
            .exec(
                    tcp("SEND DATA")
                            .withMessage("DATA".getBytes())
                            .withLengthHeader()
                            .withCheck(TcpValidators.notEmpty())
            );
    {
        setUp(
                scn.injectOpen(rampUsers(1).during(5))
        ).protocols(tcpConfig);
    }
}

See src/test/java for complete examples.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md.

Code of Conduct

See CODE_OF_CONDUCT.md.

Security

See SECURITY.md.

License

This project is licensed under the MIT License.

About

Gatling plugin to deal with TCP socket connection

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •