diff --git a/src/main/scala/org/znsio/perfiz/GatlingWorkLoadModelStep.scala b/src/main/scala/org/znsio/perfiz/GatlingWorkLoadModelStep.scala index 6ba73a2..ef1ce6c 100644 --- a/src/main/scala/org/znsio/perfiz/GatlingWorkLoadModelStep.scala +++ b/src/main/scala/org/znsio/perfiz/GatlingWorkLoadModelStep.scala @@ -17,7 +17,7 @@ class GatlingWorkLoadModelStep { var randomised: Boolean = _ @BeanProperty - var targetUserCount: Int = _ + var targetUserCount: Double = _ def durationAsFiniteDuration = Duration(duration).asInstanceOf[FiniteDuration] } diff --git a/src/test/scala/org/znsio/perfiz/PerfizSimulation.scala b/src/test/scala/org/znsio/perfiz/PerfizSimulation.scala index 850376e..1b65f99 100644 --- a/src/test/scala/org/znsio/perfiz/PerfizSimulation.scala +++ b/src/test/scala/org/znsio/perfiz/PerfizSimulation.scala @@ -43,7 +43,7 @@ class PerfizSimulation extends Simulation { case ConstantConcurrentUsers => constantConcurrentUsers(loadPattern.getUserCount()) during loadPattern.durationAsFiniteDuration case RampConcurrentUsers => rampConcurrentUsers(loadPattern.getUserCount()) to - loadPattern.getTargetUserCount() during + loadPattern.getTargetUserCount().toInt during loadPattern.durationAsFiniteDuration } })