Error with Gatling 1.2.0 when running a recorded test

Hello,
congratulation for this tool, it seems really good!
But I have this error when trying to run my first test, created using the recorder:

Collecting simulations…
Exception in thread “main” java.lang.RuntimeException: Compilation failed:
/home/xxx/gatling-charts-highcharts-1.2.0/user-files/simulations/Simulation20120601100527.scala:14: error: value acceptHeader is not a member of com.excilys.ebi.gatling.http.config.HttpProxyBuilder
possible cause: maybe a semicolon is missing before `value acceptHeader’?
.acceptHeader("/")
^
one error found

at com.excilys.ebi.gatling.app.Gatling$$anonfun$compile$1.apply(Gatling.scala:181)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$compile$1.apply(Gatling.scala:171)
at com.excilys.ebi.gatling.core.util.IOHelper$.use(IOHelper.scala:24)
at com.excilys.ebi.gatling.app.Gatling.compile(Gatling.scala:171)
at com.excilys.ebi.gatling.app.Gatling.start(Gatling.scala:107)
at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:73)
at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)

My environment:

  • Gatling 1.2.0
  • OS GNU/Linux Ubuntu 12.04

Thanks,
François

Hello François (long time no seen),

Could you share your Simulation20120601100527.scala please (paste in mail, or better, a gist)?

Cheers,

Steph

2012/6/1 François Petitit <francois.petitit@gmail.com>

Hi François,

Thanks :slight_smile:

Concerning your bug, could you provide the part of the scenario which is responsible for the compilation error ? either here, or through a gist :slight_smile:

Cheers,
Romain

Hi Stéphane, happy to see you here :slight_smile:

This is the file:

The problem seems to be in the httpConf initialisation.

Sorry, the gist:
https://gist.github.com/2850401

Nailed it.

That’s a indeed a small bug, I will fix it soon.
You have to place the proxy config at the end.
See https://gist.github.com/2850446

Cheers,

Steph

2012/6/1 François Petitit <francois.petitit@gmail.com>

Fixed in master:
https://github.com/excilys/gatling/issues/536

2012/6/1 Stéphane Landelle <slandelle@excilys.com>

Merci Stéphane, it works :slight_smile:

Cool!

2012/6/1 François Petitit <francois.petitit@gmail.com>