Skip to content

Neotys-Connect/TcpGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeoLoad TCP Generator

This project is aimed generate TCP packets during a load test. The idea is to generate TCP packets to consumes network traffic while a load test is running This project has 2 disctinct components :

  • tcpPacketSender : Custom action to add in NeoLoad to send tcp packets.
  • tcpmockserver : Service that will receive the tcp traffic . this service would need to be deployed in the same network route than your application

tcpPacketSender

This custom action will allow you to add all the project information required in XRAY :

  • Host (Required) : Host of the tcpmockserver to interact with
  • Port (Required): Port of the Tcp mockserver
  • Size (Required) : Number of bytes to send to the mock server

Depending on your objective you will be able to deploy several mockserver and interact directly wit then in the custom action

Property Value
Maturity Experimental
Author Neotys Partner Team
License BSD Simplified
NeoLoad 7.0 (Enterprise or Professional Edition w/ Integration & Advanced Usage and NeoLoad Web option required)
Bundled in NeoLoad No
Download Binaries
  • latest release is only compatible with NeoLoad from version 7.0
  • Use this release for previous NeoLoad versions

Installation

  1. Download the latest release for NeoLoad from version 7.0
  2. Read the NeoLoad documentation to see How to install a custom Advanced Action.

tcpPackGenerator Advanced Action

NeoLoad Set-up

Once installed, how to use in a given NeoLoad project:

  1. Create a tcpPacketSender User Path.
  2. Insert tcpPacketSender in the Action block.

XrayContext User Path

  1. Create a NeoLoad Population tcpPacketSender having only the userPath tcpPacketSender

XrayContext Population

1. Create a NeoLoad Scenario Using your population and the tcpPacketSender Population The tcpPacketSender Population would need to be added to your NeoLoad scenario with the following settings : * Duration : depends on your objective * Load Policy : depending on your objective of your test

XrayContext scenario

Parameters for tcpPacketSender

Name Description
Host Host of one of the tcp mock server
Port Port of on of the tcp mock server
Size Number of bytes to send to the mock server

tcpmockserver

###Configuration The tcpmockserver tcp service package in a container : hrexed/tcpmockserver The container will require to define the Environement variables :

  • SERVER_PORT: listening port of the tcp mock server
  • logging-level : Logging level of the service ( DEBUG, INFO, ERROR)

Run the webhookHandler

Requirements : Server having :

  • docker installed
  • docker-compose installed

THe deployment will use :

  • /deploy/docker-compose.yml

Make sure to update the docker-compose file by replacing the value of PORT_TO_REPLACE with your desired port. the deployment will be done by running the following command :

docker-compose -f <docker file> up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages