简体   繁体   中英

Start with 10 user and add every 5 min 50 user gatling scala

I am beginner in GATLING. I want to execute performance scenarios with below expectations:

Start with 10 user and add every 5 min 50 user. This means:

  • 0 min: 10 user (at once)
  • 5 - 10 min: 60 user
  • 10 - 15 min: 110 user
  • 15 - 20 min: 160 user

below is my simulation setup:

setUp(Scenarios.inject(
    nothingFor(5 seconds),
    atOnceUsers(Environment.atOnceusersCount.toInt),
    rampUsers(Environment.rampUsersCount.toInt) during (Environment.durationForRampusers.toInt seconds)

  )

where rampUsersCount = 2
durationForRampusers = 10 seconds

I want to understand how to increase rampUsers count gradually.

Use either incrementUsersPerSec or incrementConcurrentUsers , depending on if you want an open or closed workload model, see official documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM