TRex Stateless GUI application provides a graphical user interface for TRex.
TRex Stateless GUI application is a JavaFX based application.
The application main features can be split into two parts (TRex Management and Traffic Profile management):
Main Features
This is an online part, you need to be connected to TRex in order to perform the following actions:
- Connect and manage TRex v2.05 and above.
- Ability to preview all ports along with their status and statistics.
- Ability to assign traffic to a specific port and start the traffic.
- Ability to update the bandwidth / update the multiplier options on the fly.
- Dashboard to view the latency chart, port details and Global Statistics.
- Logger view to preview server messages.
- Advanced logger view to see all the JSON requests sent to the server and server's responses.
Traffic Profile Management is an offline tool, you can use it without connecting to TRex server.
Main Features
- Ability to import existing YAML profiles / export them to JSON or YAML formats
- Ability to create a profile from scratch
- Ability to create one or more streams for a given profile.
- Ability to edit existing stream properties or create new ones.
- Ability to build a stream from existing PCAP file or from scratch (using advanced Stream builder).
- Ability to export a stream to PCAP format.
This section describes how to build a native application bundle (EXE for Windows and DMG for Mac).
mvn clean jfx:native(generates the native packaging using Maven).- Look for the the installer, DMG, or EXE in
(project)\target\jfx\native.
This will build an installer for whatever platform you are building on. Building on a Mac will produce a Mac app. Building on a Windows PC will produce a Windows app.
Building a Mac DMG or Windows EXE works straight of the box. However, Windows requires either WiX for MSI creation or Inno Setup for an EXE-based installer (both install an EXE for the JavaFX application along with a packaged JRE).
Both don't need to be installed, just whichever one gets you to your desired installer format.
Follow the steps below to create an EXE-based installer with Inno Setup and the JavaFX Maven plugin.
- Download from Inno Setup's site
- Install it (I defaulted most of the installation options)
- Add
C:\Program Files (x86)\Inno Setup 5to your systemPathvariable.
Once done, run mvn jfx:native to create an EXE based installer at (project)\target\jfx\native.
By running the EXE installer, it installs the JavaFX application to the user's local app data folder, as well as an uninstaller entry in the Programs and Features control panel. The application is also launched immediately following installation.
To install WiX and have the JavaFX Maven plugin use it during a build, do the following:
- Download from WiX's site
- Install it.
- Add
C:\Program Files (x86)\WiX Toolset v3.10\binto your systemPathvariable.
Once that is complete, mvn jfx:native will create an MSI file in (project)\target\jfx\native\bundles.
Running the MSI installs the application to C:\Program Files (x86)\(project name) without prompt. Additionally, it creates an uninstaller listing in the Programs and Features control panel.
It is recommended to use NetBeans IDE 8.1 or above. There is no need to install any additional plugins. Simply import the project.
To install TRex, double click the installer binary and follow the instructions to complete the installation setup.
Report bug/request feature YouTrack
Follow us on TRex traffic generator google group
You can use our TRex forum if you have any question.
You can find our Windows Beta installer in the Release Tab.
You can find our Mac Beta installer in the Release Tab.
You can find our Linux RPM Beta installer in the Release Tab.
TRex has infrastructure for two kinds of automation, UI automation and JUnit/TestNG automation. The sections below provide more information about each type:
TRex uses testFX version 4 library which is based on JUnit testing framework and supports Java 8.
The tests are located in :
src/test/java/com/exalttech/trex/ui
Tests can be run using maven command:
mvn clean test -P Run-UI-TRex-Suite
TRex integrates uses TestNG framework.
The tests are located in :
src/test/java/com/exalttech/trex/simulator
Tests can be run using maven command:
mvn clean test -P Run-TRex-Suite
As part of the unit tests use TRex Simulator (stl-sim), you need to make sure that it is accessible from the machine used for testing.