# Run gatling project

**URL:** <https://community.gatling.io/t/run-gatling-project/9225>\
**Category:** Gatling (Open-Source)\
**Created:** [August 13, 2024, 3:36am UTC](https://community.gatling.io/t/run-gatling-project/9225 "2024-08-13T03:36:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicholaswkc34](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@nicholaswkc34](https://community.gatling.io/u/nicholaswkc34)\
**Post date:** [August 13, 2024, 3:36am UTC](https://community.gatling.io/t/run-gatling-project/9225/1 "2024-08-13T03:36:20Z")

</div>

**Gatling version** : 3.11.5 (must be up to date)  
**Gatling flavor** : [java]  
**Gatling build tool** : [maven]

Dear all,  
I have a new maven project which have similar to gatling plugin project. I wonder how to run the load testing using maven. I had tried using test command but it doesn’t run. Please teach me on how to run it.

Thanks in advance.

```java
package com.rev.stressTesting;

import static io.gatling.javaapi.core.CoreDsl.*;
import static io.gatling.javaapi.http.HttpDsl.*;

import io.gatling.javaapi.core.*;
import io.gatling.javaapi.http.*;

import java.util.concurrent.ThreadLocalRandom;

public class stressTesting extends Simulation{

    // Add the HttpProtocolBuilder:
    HttpProtocolBuilder httpProtocol =
            http.baseUrl("https://ticket.revid.my/")
                    .acceptHeader("application/json")
                    .contentTypeHeader("application/json");

    // Add the ScenarioBuilder:
    ScenarioBuilder homepageScenario = scenario("Street Testing Scenario")
            .exec(http("Homepage Request").get("/"));

    {
        setUp(
                homepageScenario.injectOpen(constantUsersPerSec(20).during(60))
        ).protocols(httpProtocol);
    }
}

```

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [August 13, 2024, 7:43am UTC](https://community.gatling.io/t/run-gatling-project/9225/2 "2024-08-13T07:43:07Z")

</div>

Hello,

It’s impossible to help you without you providing a full reproducer.

> I have a new maven project which have similar to gatling plugin project.

You should probably try to spot the difference. You can check for yourself that the demo project works as expected: [GitHub - gatling/gatling-maven-plugin-demo-java](https://github.com/gatling/gatling-maven-plugin-demo-java)

---

<div class="post-metadata">

**Author:** ![nicholaswkc34](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@nicholaswkc34](https://community.gatling.io/u/nicholaswkc34)\
**Post date:** [August 14, 2024, 1:44am UTC](https://community.gatling.io/t/run-gatling-project/9225/3 "2024-08-14T01:44:23Z")

</div>

How to run the project if case i clone the project you mentioned.

---

<div class="post-metadata">

**Author:** ![nicholaswkc34](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@nicholaswkc34](https://community.gatling.io/u/nicholaswkc34)\
**Post date:** [August 15, 2024, 2:24am UTC](https://community.gatling.io/t/run-gatling-project/9225/4 "2024-08-15T02:24:22Z")

</div>

I had search the documentation, The correct command is mvn gatling:test

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [September 14, 2024, 2:24am UTC](https://community.gatling.io/t/run-gatling-project/9225/5 "2024-09-14T02:24:32Z")

</div>

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