# trex-packet-editor **Repository Path**: opensource77/trex-packet-editor ## Basic Information - **Project Name**: trex-packet-editor - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-20 - **Last Updated**: 2021-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TRex Packet editor [![Build Status](https://travis-ci.org/kisel/trex-packet-editor-gui.svg?branch=master)](https://travis-ci.org/kisel/trex-packet-editor-gui) Network packet editor GUI for TRex. ![](https://raw.githubusercontent.com/kisel/trex-packet-editor-gui/master/docs/trex-packet-editor-main-dlg.png) ### Quickstart # Run scapy server ./scripts/run_scapy_server & # Run all tests, including headless UI tests (optional) ./gradlew -Pheadless test intTest uiTest # Run application ./gradlew run ### Run integration and UI tests make sure the Scapy server is started. see `./scripts/run_scapy_server` helper script you can also specify external server with an environment variable `export SCAPY_SERVER=localhost:4507` ./gradlew intTest uiTest # or run tests in headless mode ./gradlew -Pheadless intTest uiTest # to see test reports: # open ./build/reports/tests/index.html ### Howto ##### Install to the local Maven repository ./gradlew install ##### Build standalone jar file this builds standalone jar file for UI. scapy_service is not included. jar is located in **./build/libs/TRexPacketCraftingTool.jar** ./gradlew jar ##### Build pom ./gradlew createPom ##### Build package/installer see https://github.com/FibreFoX/javafx-gradle-plugin#gradle-tasks for more options ./gradlew jfxNative ##### Run scapy_server with python3 `PYTHON=python3 ./scripts/run_scapy_server -v --scapy-port 4507` ##### Enable Debug logging for packed editor UI enable logging in gradle by specifying -PpacketEditorLogger(`gradle -PpacketEditorLogger `) also you may need to create logging.properties(see sl4j, logback documentation) ``` cat < logging.properties handlers= java.util.logging.ConsoleHandler .level= DEBUG ENDL ``` ##### Remove logging library from jar gradle -Prelease jar