Guidance on running gatling using sbt plugin

Gatling version: 3.12.0
Gatling flavor: java kotlin scala javascript typescript
Gatling build tool: maven gradle sbt bundle npm

Hello,
I downloaded the gatling sbt plugin demo and I am trying to run the example via sbt but for some reason the gatling simulations don’t seem to run and it is stuck on the execute test job:

sbt Gatling/test                                                     
[info] welcome to sbt 1.10.1 (Oracle Corporation Java 21.0.2)
[info] loading global plugins from /Users/cris/.sbt/1.0/plugins
[info] loading settings for project gatling-sbt-plugin-demo-main-build from plugins.sbt ...
[info] loading project definition from /Users/cris/code/gatling-sbt-plugin-demo-main/project
[info] loading settings for project gatling-sbt-plugin-demo-main from build.sbt ...
[info] set current project to gatling-sbt-plugin-demo-main (in build file:/Users/cris/code/gatling-sbt-plugin-demo-main/)
[info] compiling 1 Scala source to /Users/cris/code/gatling-sbt-plugin-demo-main/target/scala-2.13/test-classes ...

  | => gatling-sbt-plugin-demo-main / Gatling / executeTests 615s


I tried sbt Gatling/testOnly computerdatabase.BasicSimulation, different java versions with the same outcome.
I get the same behavior on my own project using sbt 1.10.2.

Can anyone shed some light on what I am doing wrong? Thank you!

I found what I was, and I’m posting it here in case anyone has a similar issue. It was the network access protection from the endpoint protection that caused this. Disabling that while running these tests (on Mac System settings → Network) fixed the issue.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.