Run gatling scripts using taurus config

427 views
Skip to first unread message

f200...@gmail.com

unread,
Aug 30, 2016, 11:59:32 PM8/30/16
to codename-taurus
Hi All,

I am trying to run my gatling scripts using a taurus config and cannot figure out the right taurus config.
I have searched on web for any references, nothing turned up.
Essentially I have bunch of scala classes (gatling script and its dependencies) which are also using a configuration and json file to run a test.
I have tried it with the below taurus config with no success.

---
execution:
- executor: gatling
  scenario: sample
  file:
  - /test2 (I have bundled my scala project into a jar and put it in this location)
scenarios:
  sample:
    script: tests/gatling/BasicTest.scala (not sure what to give the location since its bundled inside a jar)
    simulation: tests.gatling.BasicSimulation

The test doesnt recognize the BasicTest.scala even with the file directive. (pretty sure the above config is wrong).
I'm basically looking for the equivalent of "sbt test" in taurus config.

Any help would be appreciated.

Dmitri Pribysh

unread,
Aug 31, 2016, 9:53:09 AM8/31/16
to f200...@gmail.com, codename-taurus
Hi,

To solve your issue, we've added a new feature to Gatling executor: the ability to run jar files.

To use it you should bundle your test suite in a jar (`sbt package` will do) and then specify that jar as a `script` value in your scenario. Here's the example for your repo:

```

---
execution:
- executor: gatling
  scenario: sample

scenarios:
  sample:
    script: target/scala-2.11/osimsvcgatlingsuite_2.11-1.0-gatling.jar
    simulation: tests.gatling.BasicSimulation
```

There's one caveat: you should build your jar against the same Gatling version that Taurus will use. Currently Taurus installs Gatling 2.1.7 by default and your build.sbt uses 2.1.7 too, so you should be fine.

Until the next Taurus version is released you can try it by installing Taurus snapshot from http://gettaurus.org/docs/DeveloperGuide/#Python-Egg-Snapshots ( bzt-1.6.7.864.tar.gz).

Please, give it a try and post your feedback here.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/8737ea64-55b2-48cc-bb0d-ab9482b4c280%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages