how to use duration/repeat

i have tried many things but nothing helped.
i have this scenario, how do i run it for simple 30 minuets? where do i need to do it? please help

val scn = scenario("RequestToSpJavaUi")
  .exec(RequestToSpJavaUi)
    .exec(DisplayLogin)
    .exec(AuthenticateUser)


i am running it by:

http://gatling.io/docs/2.1.4/general/scenario.html#during

Simply wrap your execs in a during block.

Cheers,

Pierre

yes i just missed something. now it works like this, but why i cannot write during(60 seconds)? it is write in the example but not compile

val scn = scenario("RequestToSpJavaUi")
  .during(10) {

  exec(RequestToSpJavaUi)
    .pause(3)
    .exec(DisplayLogin)
    //.pause(3)
    .exec(AuthenticateUser)
}


and also repeat:

You need to add an import in your simulation
Just add : import scala.concurrent.duration._ at the top of your file and it’ll compile.

thanks a lot, it solve the problem