Hello,
I have a Gatling scenario defines a couple of steps like this:
constantUsersPerSec(2).during(200.seconds),
nothingFor(10.seconds),
constantUsersPerSec(0.25).during(25.seconds),
nothingFor(10.seconds),
constantUsersPerSec(0.5).during(50.seconds),
nothingFor(10.seconds),
constantUsersPerSec(1).during(200.seconds),
nothingFor(10.seconds),
constantUsersPerSec(2).during(200.seconds),
nothingFor(10.seconds),
constantUsersPerSec(4).during(200.seconds),
nothingFor(10.seconds),
constantUsersPerSec(8).during(200.seconds),
nothingFor(10.seconds),
constantUsersPerSec(16).during(200.seconds)
This scenario takes about 25 minutes to complete and the log only sends the number and percentage of requests completed.
I would like to see in the log what the current step is.
Is there a way to inject a print statement into my list of steps?
I’m looking for something along the lines of this:
constantUsersPerSec(2).during(200.seconds),
println(“Step 1 completed”),
nothingFor(10.seconds),
constantUsersPerSec(0.25).during(25.seconds),
println(“Step 2 completed”),
nothingFor(10.seconds),
constantUsersPerSec(0.5).during(50.seconds),
println(“Step 3 completed”),
How can I achieve this?
Thanks
Leonard