99ea686ed5
Added a stress test and configured the parameters to simulate a smaller load --------- Co-authored-by: LQ63 <lkhermann@web.de> Reviewed-on: #3
21 lines
545 B
Scala
21 lines
545 B
Scala
package simulations
|
|
|
|
import base.BaseSimulation
|
|
import endpoints.BoardEndpoints
|
|
import io.gatling.core.Predef._
|
|
|
|
import scala.concurrent.duration._
|
|
|
|
class LoadTestSimulation extends BaseSimulation {
|
|
|
|
private val maxUsers = sys.props.getOrElse("maxUsers", "5").toInt
|
|
private val rampDuration = sys.props.getOrElse("rampDuration", "60").toInt
|
|
|
|
setUp(
|
|
BoardEndpoints.all.map { endpoint =>
|
|
scenarioFromEndpoint(endpoint)
|
|
.inject(rampUsers(maxUsers).during(rampDuration.seconds))
|
|
}: _*
|
|
).protocols(httpProtocol)
|
|
}
|