# Simulating more than one users - Gatling 2.0.1

**URL:** <https://community.gatling.io/t/simulating-more-than-one-users-gatling-2-0-1/1581>\
**Category:** Gatling (Open-Source)\
**Created:** [October 22, 2014, 3:43pm UTC](https://community.gatling.io/t/simulating-more-than-one-users-gatling-2-0-1/1581 "2014-10-22T15:43:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Hernandez](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Daniel\_Hernandez](https://community.gatling.io/u/Daniel_Hernandez)\
**Post date:** [October 22, 2014, 3:43pm UTC](https://community.gatling.io/t/simulating-more-than-one-users-gatling-2-0-1/1581/1 "2014-10-22T15:43:07Z")

</div>

Hello,

I am trying to run a test with more than one request.

I am following the site’s directions ([http://gatling.io/docs/1.5.6/user\_documentation/tutorial/first\_steps\_with\_gatling.html#first-steps-with-gatling](http://gatling.io/docs/1.5.6/user_documentation/tutorial/first_steps_with_gatling.html#first-steps-with-gatling)) and adding the following to the simulation.scala ’

```auto
scn.users(10).protocolConfig(httpConf)'but am getting the following error: 

```

value users is not a member of io.gatling.core.structure.ScenarioBuilder  
10:37:36.971 [ERROR] i.g.a.ZincCompiler$ - setUp(scn.users(10).protocols(httpProtocol))  
10:37:36.972 [ERROR] i.g.a.ZincCompiler$ - ^  
10:37:36.981 [ERROR] i.g.a.ZincCompiler$ - one error found  
Compilation failed

I see that the link corresponds to gatling 1.5.6. Is there a new way to change this on 2.0.1?

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [October 22, 2014, 3:46pm UTC](https://community.gatling.io/t/simulating-more-than-one-users-gatling-2-0-1/1581/2 "2014-10-22T15:46:23Z")

</div>

Hi Daniel,

Maybe you should have a look at Gatling 2.0.1 documentation on that matter : [http://gatling.io/docs/2.0.1/general/simulation\_setup.html#injection](http://gatling.io/docs/2.0.1/general/simulation_setup.html#injection) .

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![Daniel\_Hernandez](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Daniel\_Hernandez](https://community.gatling.io/u/Daniel_Hernandez)\
**Post date:** [October 22, 2014, 3:56pm UTC](https://community.gatling.io/t/simulating-more-than-one-users-gatling-2-0-1/1581/3 "2014-10-22T15:56:37Z")

</div>

Thank you Pierre. I followed the link and copied and pasted the following below to the end of my simulation.scala file and am getting the following error:

Error:  
not found: value httpConf  
10:50:17.587 [ERROR] i.g.a.ZincCompiler$ - ).protocols(httpConf)  
10:50:17.587 [ERROR] i.g.a.ZincCompiler$ - ^  
10:50:17.608 [ERROR] i.g.a.ZincCompiler$ - one error found  
Compilation failed

Copied Text:

```auto
setUp(
  scn.inject(
    nothingFor(4 seconds), // 1
    atOnceUsers(10), // 2
    rampUsers(10) over(5 seconds), // 3
    constantUsersPerSec(20) during(15 seconds), // 4
    constantUsersPerSec(20) during(15 seconds) randomized, // 5
    rampUsersPerSec(10) to(20) during(10 minutes), // 6
    rampUsersPerSec(10) to(20) during(10 minutes) randomized, // 7
    splitUsers(1000) into(rampUsers(10) over(10 seconds)) separatedBy(10 seconds), // 8
    splitUsers(1000) into(rampUsers(10) over(10 seconds)) separatedBy(atOnceUsers(30)), // 9
    heavisideUsers(1000) over(20 seconds) // 10
    ).protocols(httpConf)
  )

```

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [October 22, 2014, 4:02pm UTC](https://community.gatling.io/t/simulating-more-than-one-users-gatling-2-0-1/1581/4 "2014-10-22T16:02:50Z")

</div>

It’s because the val in which you defined your protocol is called _httpProtocol_ in your simulation, and _httpConf_ in the doc. Replace _httpConf_ by _httpProtocol_ and it will work.

But instead of simply copy/pasting the code examples, please read the documentation. You really dont need an injection profile that complicated.  
It’s only meant to showcase all the possibilites the injection DSL offers.

---

<div class="post-metadata">

**Author:** ![Daniel\_Hernandez](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Daniel\_Hernandez](https://community.gatling.io/u/Daniel_Hernandez)\
**Post date:** [October 22, 2014, 8:41pm UTC](https://community.gatling.io/t/simulating-more-than-one-users-gatling-2-0-1/1581/5 "2014-10-22T20:41:14Z")

</div>

Thank you Pierre! I understand.
