我怎样才能调试或运行BasicSimulation.scala?
现在我使用sbt命令来运行:
testOnly simulations:BasicSimulation
还有其他简单的调试方法吗?谢谢。
我怎样才能调试或运行BasicSimulation.scala?
现在我使用sbt命令来运行:
testOnly simulations:BasicSimulation
还有其他简单的调试方法吗?谢谢。
您可以添加一个简单的类并通过右键单击 - >运行它来运行它。像这里的东西: https://github.com/puppetlabs/gatling-puppet-load-test/blob/master/simulation-runner/src/main/scala/com/puppetlabs/gatling/runner/PuppetGatlingRunner.scala
在gatling项目的官方文档页面中很好地解释了一切:
http://gatling.io/docs/2.2/extensions/maven_archetype/
只需使用他们的原型在maven中生成一个项目,然后导入任何体面的IDE和voilà
如果要在intellij中运行gatling测试,可以转到左上角运行工具栏中的编辑配置并添加新的sbt任务。
在任务栏中输入 testOnly simulations:BasicSimulation
就是这样。
通常你应该可以通过单击调试按钮来调试它,但至少在我的配置中,似乎不可能进行加特林测试。