File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
modules/swagger-codegen/src/main/resources/scala-gatling Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ class {{classname}}Simulation extends Simulation {
15
15
16
16
def getCurrentDirectory = new File(" " ).getAbsolutePath
17
17
def userDataDirectory = getCurrentDirectory + " /src/gatling/resources/data"
18
+ def userConfDirectory = getCurrentDirectory + " /src/gatling/resources/conf"
18
19
19
20
// basic test setup
20
21
val configName = System.getProperty(" testConfig" , " baseline" )
21
- val config = ConfigFactory.load(configName).withFallback(ConfigFactory.load(" default" ))
22
+ val config = ConfigFactory.parseFile(new File(userConfDirectory + File.separator + configName + " .conf" ))
23
+ .withFallback(ConfigFactory.parseFile(new File(userConfDirectory + File.separator + " default.conf" )))
22
24
val durationSeconds = config.getInt(" performance.durationSeconds" )
23
25
val rampUpSeconds = config.getInt(" performance.rampUpSeconds" )
24
26
val rampDownSeconds = config.getInt(" performance.rampDownSeconds" )
You can’t perform that action at this time.
0 commit comments