# how to use ramp in version 2 ?

**URL:** <https://community.gatling.io/t/how-to-use-ramp-in-version-2/947>\
**Category:** Gatling (Open-Source)\
**Created:** [April 10, 2014, 8:48am UTC](https://community.gatling.io/t/how-to-use-ramp-in-version-2/947 "2014-04-10T08:48:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_ESCOLANO](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Jeremy\_ESCOLANO](https://community.gatling.io/u/Jeremy_ESCOLANO)\
**Post date:** [April 10, 2014, 8:48am UTC](https://community.gatling.io/t/how-to-use-ramp-in-version-2/947/1 "2014-04-10T08:48:44Z")

</div>

Hi,

I apologize for this following question, but going further with my tests, I’m not able to use the distribution :

For example, I try to do this :

setUp(scn.inject(ramp(10 users) over (5 seconds))).protocols(httpProtocol)

but eclipse says “not found : value ramp” and then there are error launching the engine…

I’m sorry but I read this :

[https://github.com/excilys/gatling/wiki/Concepts#simulation](https://github.com/excilys/gatling/wiki/Concepts#simulation)

and tried to use the example, but same problème.

I don’t understand what I am missing.

Thanks in advance,

Regards,

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [April 10, 2014, 8:50am UTC](https://community.gatling.io/t/how-to-use-ramp-in-version-2/947/2 "2014-04-10T08:50:30Z")

</div>

rampUsers(10)

You can find examples of the current syntax here:  
[https://github.com/excilys/gatling/blob/master/gatling-http/src/test/scala/io/gatling/http/HttpCompileTest.scala](https://github.com/excilys/gatling/blob/master/gatling-http/src/test/scala/io/gatling/http/HttpCompileTest.scala)

---

<div class="post-metadata">

**Author:** ![Jeremy\_ESCOLANO](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Jeremy\_ESCOLANO](https://community.gatling.io/u/Jeremy_ESCOLANO)\
**Post date:** [April 10, 2014, 9:40am UTC](https://community.gatling.io/t/how-to-use-ramp-in-version-2/947/3 "2014-04-10T09:40:35Z")

</div>

THanks,  
this example is very helpful !  
Regards
