A plugin for Gatling to enable TCP protocol support in load tests.
- TCP protocol support for Gatling
- Custom simulation examples
- Easy configuration
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.
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.
Contributions are welcome! Please see CONTRIBUTING.md.
See CODE_OF_CONDUCT.md.
See SECURITY.md.
This project is licensed under the MIT License.