Programmatically executing gatling

Is there a way to programmatically execute gatling via an API? My goal is to be able to edit my gatling script in an IDE and do runs from there.

Thanks,
Josh

Hi,

You can use our maven archetype :
https://github.com/excilys/gatling/wiki/Advanced-Usage → Maven Archetype

Does this meet your needs?

Cheers,

Steph

2012/2/29 Josh Stone <pacesysjosh@gmail.com>

The archetype works great (after I added the repository declaration to the POM)!

Thanks,
Josh

Glad to hear.

Cheers,

Steph

2012/2/29 Josh Stone <pacesysjosh@gmail.com>

Bumping this thread - is there a way to do something similar with the 1.1 snapshot? Among the changes that break the old archetype generated code:

Gatling (in gatling-app) no longer has an apply method and GatlingSimulation appears to no longer exist.

Cheers,
Josh

Hi again,

  • GatlingSimulation was renamed into Simulation (and you don’t have to import it explicitly has long as you import core.Predef._).

  • I’ll put Gatling.apply back as soon as I get back to the office (it’s called launch in the snapshot you’re using)…

Steph

2012/3/16 Josh Stone <pacesysjosh@gmail.com>