【问题标题】:Additional import for duration/minutes DSL to work持续时间/分钟 DSL 的额外导入工作
【发布时间】:2016-07-29 14:06:49
【问题描述】:

下面给我一个编译错误

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

在 IDE 中出现以下编译错误

Cannot resolve symbol seconds. 

我在 IntelliJ 上运行 gradle,不要将模拟复制到 gatling 文件夹。 需要额外导入吗?

【问题讨论】:

    标签: gatling


    【解决方案1】:
    import scala.concurrent.duration._
    

    【讨论】:

    • +1 但是普通的凡人习惯 alt + enter (Intellij 没有给出导入它的明智建议)应该知道,真的很喜欢 Gatling,在 Scala 中制作它的想法是“哇”,请在 Kotlin 中提供您的 DSL,您将有大量新客户涌入。 ;-)
    猜你喜欢
    • 1970-01-01
    • 2017-03-15
    • 2022-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-23
    • 2019-10-24
    相关资源
    最近更新 更多