Created
August 6, 2022 11:50
-
-
Save polarnik/69c66dc89a3a161d605635120a60f7f0 to your computer and use it in GitHub Desktop.
DebugApp Gatling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.gatling.app.Gatling; | |
import org.junit.jupiter.api.Test; | |
import scala.collection.mutable.HashMap; | |
public class DebugApp { | |
final private HashMap<String, String> config = new HashMap<>(); | |
{ | |
// default values | |
config.put("gatling.core.directory.resources", IDEPathHelper.resourcesDirectory.toString()); | |
} | |
void runSimulation(String simulationClass, String description) { | |
config.put("gatling.core.simulationClass", simulationClass); | |
config.put("gatling.core.runDescription", description); | |
Gatling.fromMap(config); | |
} | |
@Test | |
void runSimulation() { | |
runSimulation("simulation.MaxPerfSimulation", "open workload model"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.gatling.app.Gatling | |
import io.gatling.core.ConfigKeys.{core} | |
object DebugApp extends App { | |
val config = scala.collection.mutable.Map( | |
core.SimulationClass -> "simulation.MaxPerfSimulation", | |
core.RunDescription -> "open workload model" | |
) | |
Gatling.fromMap(config) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment