Integrating Gatling and TestNG/JUnit

263 views
Skip to first unread message

John Arrowwood

unread,
Mar 21, 2018, 1:51:35 PM3/21/18
to Gatling User Group
I'm interested in using Gatling's DSL to express both functional/integration tests as well as load/stress tests.  The idea is that the load tests will string together the functional tests (or snippets thereof) in order to generate load.

To pull this off, what I need is a way of using a test runner like TestNG or JUnit as the test runner, but having individual tests fire off Gatling scenarios.

Can one of you fine souls please either direct me to the necessary portion of the documentation, or provide a code sample, that shows how straight Java/Scala can trigger a Gatling scenario execution, and either pass or fail if the scenario does?  

Thanks!


John Arrowwood

unread,
Mar 21, 2018, 4:39:11 PM3/21/18
to Gatling User Group
As a side-note, I did find https://gatling.io/docs/2.3/general/functional_specs/.  

I asked about TestNG specifically because it includes features like parallel test execution, and using groups to execute subsets of tests.  Does Gatling Functional Specs support those features?  If not, is there a way to use TestNG with this feature?

Stéphane LANDELLE

unread,
Mar 22, 2018, 5:48:35 AM3/22/18
to gat...@googlegroups.com
That's probably feasible and that something we'd like to investigate some day, but we really don't have time atm.
Can't help here, sorry.

Good luck, looking forward to your findings!

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages