# there were no requests sent during simulation

**URL:** <https://community.gatling.io/t/there-were-no-requests-sent-during-simulation/816>\
**Category:** Gatling (Open-Source)\
**Created:** [February 13, 2014, 7:50pm UTC](https://community.gatling.io/t/there-were-no-requests-sent-during-simulation/816 "2014-02-13T19:50:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![corey\_bailey](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@corey\_bailey](https://community.gatling.io/u/corey_bailey)\
**Post date:** [February 13, 2014, 7:50pm UTC](https://community.gatling.io/t/there-were-no-requests-sent-during-simulation/816/1 "2014-02-13T19:50:17Z")

</div>

Ok, I can compile an run a test,however i’m missing some major aspect of testing as it doesn’t appear that i’m sending any requests during testing.

I get the following error after execution “there were no requests sent during simulation”

Script edited for descretion:

package PackageName  
// IMPORT PACKAGES HERE  
import io.gatling.core.Predef.\_  
import io.gatling.core.session.Expression  
import io.gatling.http.Predef.\_  
import io.gatling.jdbc.Predef.\_  
import io.gatling.http.Headers.Names.\_  
import io.gatling.http.Headers.Values.\_  
import scala.concurrent.duration.\_  
import bootstrap.\_  
import assertions.\_

class WebServiceRequest extends Simulation {  
// DECLARE CONSTANTS HERE  
// Declare Headers  
val headers\_1 = Map(“User-Agent” → “Apache-HttpClient/4.1.1 (java 1.5)”, “Accept-Encoding” → “gzip,deflate” )

//Declare Body of SOAP REQUEST  
val myBody = “”"\<soapenv:Envelope xmlns:soapenv=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)”\>  
soapenv:Header\<wsse:Security soapenv:mustUnderstand=“1” xmlns:wsse=“[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd)” xmlns:wsu=“[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd)”\>\<wsse:UsernameToken wsu:Id=“UsernameToken-1”\>wsse:Usernameusername\</wsse:Username\>  
\<wsse:Password Type=“[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText)”\>password\</wsse:Password\>\<wsse:Nonce EncodingType=“[http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary](http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary)”\>daffa+ddd==\</wsse:Nonce\>wsu:Created2014-01-29T16:14:04.315Z\</wsu:Created\>\</wsse:UsernameToken\>\</wsse:Security\>\</soapenv:Header\>  
soapenv:Body  
aaa:element  
data  
\</aaa:element\>  
\</soapenv:Body\>  
\</soapenv:Envelope\>"""

// Define the scenario below  
val scn = scenario(“request”)  
repeat(10)  
{  
exec(http(“WebService”)  
.post(“[http://url.com/endpoint](http://url.com/endpoint)”)  
.headers(headers\_1)  
.body(StringBody(myBody)).asXML)  
}

//Run the scenerio  
setUp(scn.inject(rampRate(1 usersPerSec) to(1000 usersPerSec) during(2 minutes))).protocols(http)

}

---

<div class="post-metadata">

**Author:** ![corey\_bailey](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@corey\_bailey](https://community.gatling.io/u/corey_bailey)\
**Post date:** [February 13, 2014, 8:04pm UTC](https://community.gatling.io/t/there-were-no-requests-sent-during-simulation/816/2 "2014-02-13T20:04:19Z")

</div>

Version: 2.0.0-M3a

---

<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:** [February 13, 2014, 8:06pm UTC](https://community.gatling.io/t/there-were-no-requests-sent-during-simulation/816/3 "2014-02-13T20:06:12Z")

</div>

Hi,

It’s looks like your missing a dot between scenario and repeat, it should be scenario(“request”).repeat{ … }

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![corey\_bailey](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@corey\_bailey](https://community.gatling.io/u/corey_bailey)\
**Post date:** [February 13, 2014, 8:11pm UTC](https://community.gatling.io/t/there-were-no-requests-sent-during-simulation/816/4 "2014-02-13T20:11:38Z")

</div>

That did it! Thanks!

---

<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:** [February 13, 2014, 8:18pm UTC](https://community.gatling.io/t/there-were-no-requests-sent-during-simulation/816/5 "2014-02-13T20:18:11Z")

</div>

You’re welcome !

Have fun with Gatling 😉
