Additional import for duration/minutes DSL to work
Asked Answered
A

1

8

The below is giving me a compilation error

setUp(
    scn.inject(
      constantUsersPerSec(10) during(30 seconds)
    )
 )

Getting below compilation error in IDE

Cannot resolve symbol seconds. 

Am running gradle on IntelliJ and do not copy the simulations to gatling folders. Any additional import required ?

Amandy answered 8/4, 2016 at 10:33 Comment(0)
K
18
import scala.concurrent.duration._
Kirsch answered 8/4, 2016 at 11:26 Comment(1)
+1 but how normal mortal used to alt + enter (of Intellij which does not give sensible suggestion to import it) supposed to know that, really love Gatling, idea to make it in Scala is "WOW", offer your DSL in Kotlin pls you will have influx of new clients. ;-)Keelboat

© 2022 - 2024 — McMap. All rights reserved.