Gatling Automatically Shuts Down

Hey all,

So I have a test I am trying to run through Gatling. I start up the Gatling program, and it begins just fine. It brings me to my list of simulations. I put in the number I want, [Enter] [Enter] for name and description, and it starts processing. Text flies up in the prompt, and then it closes out. Anyone have any idea what is the cause of this? Find my Gatling code below.

package computerdatabase

import io.gatling.core.Predef._
import io.gatling.core.feeder._
import io.gatling.core.session._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import io.gatling.http.response.ResponseWrapper
import io.gatling.http.response.StringResponseBody
import scala.concurrent.duration._
import scala.util.parsing.json._
import scala.util.Random

class testName extends Simulation {

object CreateObject{

val createObject = exec(http(“Create_Object”)
.post("/PATH/TOl/EXEC/FILE/")
.body(StringBody("""{“label1”:“LabelName”,
“token”:"${generatedToken}",
“item1”:“Item Name”,
“id1”:“ID1IDENTIFICATION”,
“id2”:“ID2IDENTIFICATION”’
“objects”:[“1459276170158;13.071895;12.1212;44.9346;4.41919;
0;0;Some Name; some.name@email.com;;0;Arial;10;black;;;;;1;;”,
“1459276172470;13.562091503267973;18.93939;16.33987;4.4191919;1;0;
Some Name; some.name@email.com;;0;Arial;10;black;;;;;1;;”,
"1459276175745;39.54248;19.9494948;16.3399;2.52525;2;0;Some Name;

some.name@email.com;;0;Arial;18;black;;;;;1;;",
"1459276190127;14.3791;26.0101;43.95425;4.419192;3;0;Some Name;

some.name@email.com;;0;Arial;10;black;;FullName;Full Name;;0;;",
"1459276214099;14.37908;32.44949;3.59477;2.52525;4;0;Some Name;

some.name@email.com;;0;Arial;10;black;;CheckBox1;0;0;0;True;False",
"1459276238369;14.54255;36.868687;2.94118;2.14646;5;0;Some Name;

some.name@email.com;;0;Arial;10;black;;RadioBtn1;0;0;0;Yes;",
"1459276256877;20.75163;36.9949;2.94118;2.14646;5;0;Some Name;

some.name@email.com;;0;Arial;10;black;;RadioBtn1;0;0;0;No;"],
“id3”:“ID3”,
“files”:[“File Name”],
“host”:“000.00.00.000”
}"""))
.transformResponse{
case response if response.isReceived =>
new ResponseWrapper(response) {
val stripped = response.body.string
println(“stripped = " + stripped)
override val body = new StringResponseBody(stripped, response.charset)
}
}
.asJSON
.check(jsonPath(”$.result").is(“true”))
.check(status.is(200))
.extraInfoExtractor(ExtraInfo => {
if(ExtraInfo.status==“KO”)
println("httpCode: " + ExtraInfo.response.statusCode + ", Response: " + ExtraInfo.response.body)
List(ExtraInfo.response.statusCode, ExtraInfo.response.body.string)}))

}

val t_iterations = Integer.getInteger(“iterations”, 1).toInt
val t_concurrency = Integer.getInteger(“concurrency”, 1).toInt
val t_rampUp = Integer.getInteger(“ramp-up”, 10).toInt

val httpConf = http
.baseURL(“https://sampleURL.business.com”)
.headers(Map(“Content-Type” → “application/json,text/html,application/xhtml+xml,application/xml”, “charset” → “UTF-8”))
.doNotTrackHeader(“1”)
.acceptLanguageHeader(“en-US,en;q=0.5”)
.acceptEncodingHeader(“gzip, deflate”)
.userAgentHeader(“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0”)

val scn = scenario(“Test 1”)
.repeat(t_iterations){
exec(CreateObject.createObject)
}

setUp(scn.inject(rampUsers(t_concurrency) over (t_rampUp)))
.protocols(httpConf)

}

Thanks ahead of time for all of your help.

Rob

Never mind guys. I figured it out. If anyone else runs into this issue, for me, when I downloaded the new version, I didn’t move my feeder file over to the new set of files. Once I had my feeder file in place, I had no problems running the test.

Thanks for anyone that was working on trying to help me.

Rob