Ich generierte ein Maven-Projekt für Gatling mit dem Archetyp-Ansatz. Wenn ich die Engine.scala-Datei von Eclipse aus starte, frage ich nach Eingabe, welche Simulation ausgeführt werden soll. Ich habe die Eigenschaft für die Simulationsklasse mit dem Gatling PropertiesBuilder hinzugefügt, aber sie fragt immer noch nach einer Simulations-ID. Ich möchte alle Informationen im Voraus zur Verfügung stellen, sodass ich bei der Ausführung von Engine.scala keine Eingabeaufforderung erhalte.Unbeaufsichtigter Lauf für Gatling
Hier ist mein Code
val props = new GatlingPropertiesBuilder
props.dataDirectory(IDEPathHelper.dataDirectory.toString)
props.resultsDirectory(IDEPathHelper.resultsDirectory.toString)
props.bodiesDirectory(IDEPathHelper.bodiesDirectory.toString)
props.binariesDirectory(IDEPathHelper.mavenBinariesDirectory.toString)
props.simulationClass("za.co.insights.gatling.RecordedSimulation")
props.runDescription("Testing")
props.mute()
//props.reportsOnly("true")
//props.
//Gatling.fromArgs
Gatling.fromMap(props.build)
Mute Einstellung in der Konfigurationsdatei auf true oder als eine Eigenschaft bereitstellt hat Kein Effekt. Es fragt immer noch nach Eingabe. – n4rzul
Nein, das stimmt. Ich schlage vor, dass Sie es individuell isoliert arbeiten und dann das Verhalten imitieren ... – user666