Package io.ryos.rhino.sdk.reporting
Class GatlingSimulationLogFormatter
- java.lang.Object
-
- io.ryos.rhino.sdk.reporting.GatlingSimulationLogFormatter
-
- All Implemented Interfaces:
SimulationLogFormatter
public class GatlingSimulationLogFormatter extends java.lang.Object implements SimulationLogFormatter
Gatling log formatter is used to format the step log entries so that the Gatling tooling can process them to create load testing reports. Gatling reports can be created by running gatling.sh in the command-line:$ gatling.sh -ro <path-to-dir-containing-simulations>
Gatling step log might change in future, so the current format is associated with the version defined with GATLING_VERSION.- Since:
- 1.0
- Author:
- Erhan Bagdemir
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GATLING_HEADLINE_TEMPLATE
static java.lang.String
GATLING_VERSION
-
Constructor Summary
Constructors Constructor Description GatlingSimulationLogFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(LogEvent event)
Gatling formatter, writes the log event in the Gatling format so that Gatling can generate reports:
-
-
-
Field Detail
-
GATLING_VERSION
public static final java.lang.String GATLING_VERSION
- See Also:
- Constant Field Values
-
GATLING_HEADLINE_TEMPLATE
public static final java.lang.String GATLING_HEADLINE_TEMPLATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
format
public java.lang.String format(LogEvent event)
Gatling formatter, writes the log event in the Gatling format so that Gatling can generate reports:- Specified by:
format
in interfaceSimulationLogFormatter
- Parameters:
event
- Log event.- Returns:
- Formatted string containing the step entry.
-
-