# Simulation not running

**URL:** <https://community.gatling.io/t/simulation-not-running/7048>\
**Category:** Gatling (Open-Source)\
**Tags:** gatling-academy\
**Created:** [August 10, 2022, 4:11am UTC](https://community.gatling.io/t/simulation-not-running/7048 "2022-08-10T04:11:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep21](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sandeep21](https://community.gatling.io/u/Sandeep21)\
**Post date:** [August 10, 2022, 4:11am UTC](https://community.gatling.io/t/simulation-not-running/7048/1 "2022-08-10T04:11:58Z")

</div>

I have define two simulation class inside package -  
src/gatling/java/com.demo.PaymentOne  
src/gatling/java/com.demo.PaymentTwo

Now, when I am running gradle gatlingRun task from intellij, simulations are not executing. Logs are provided below -

> Task :compileScala NO-SOURCE  
> Task :processResources  
> Task :classes  
> Task :compileTestJava  
> Task :compileTestScala NO-SOURCE  
> Task :processTestResources NO-SOURCE  
> Task :testClasses  
> Task :compileGatlingJava  
> Task :compileGatlingScala NO-SOURCE  
> Task :processGatlingResources  
> Task :gatlingClasses  
> Task :gatlingLogback  
> Task :gatlingRun

BUILD SUCCESSFUL in 1m 6s  
7 actionable tasks: 7 executed

But, when I am running gradle gatlingRun-com.demo.PaymentOne task from intellij, simulations are executing.

The problem is, gatlingRun should run all the simulations residing in src/gatling/java.

Gradle build configuration -  
id ‘io.gatling.gradle’ version ‘3.8.2’

gatling {  
// WARNING: options below only work when logback config file isn’t provided  
logLevel = ‘WARN’ // logback root level  
logHttp = ‘ALL’ // set to ‘ALL’ for all HTTP traffic in TRACE, ‘FAILURES’ for failed HTTP traffic in DEBUG  
}

---

<div class="post-metadata">

**Author:** ![Drew](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Drew](https://community.gatling.io/u/Drew)\
**Post date:** [August 10, 2022, 5:21pm UTC](https://community.gatling.io/t/simulation-not-running/7048/2 "2022-08-10T17:21:43Z")

</div>

@Sandeep21  
It sounds like `gatlingRun` cannot find your simulations. There is [additional documentation](https://gatling.io/docs/gatling/reference/current/extensions/gradle_plugin/#plugin-configuration) that explains how you can change where the task looks for your simulations at.

So if your folder layout was  
 → src  
-----\>gatling  
---------\>java  
-------------\>simulations //Where your simulations are

Then you would update your build.gradle file with

```auto
gatling{
    simulations = {
        include "**simulations/*.java"
    }
}

```

---

<div class="post-metadata">

**Author:** ![GeMi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/gemi/32/939_2.png) [@GeMi](https://community.gatling.io/u/GeMi)\
**Post date:** [August 10, 2022, 6:08pm UTC](https://community.gatling.io/t/simulation-not-running/7048/3 "2022-08-10T18:08:59Z")

</div>

I have checked your case using: [GitHub - gatling/gatling-gradle-plugin-demo-java](https://github.com/gatling/gatling-gradle-plugin-demo-java)  
I have created packages and Simulations as show below:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/26a76fd04b3d1421f6ad245aa8874d6343b0e1d1.png)

and all Simulations have run after `gradlew gatlingRun` on Gradle 7.4.2.  
I have checked this at `id 'io.gatling.gradle' version '3.8.3.2'` (newest) and `id 'io.gatling.gradle' version '3.8.2'` (used by you).

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/15e6b54c3333cf3a4c1be4400ad675a9933137fe.png)

So you must have some configuration issue.
