using gatling with bdd cucumber steps

Hello! I try to include a step to Cucumber scenario (.feature file) to run a gatling (.scala file) in my Java step definition code but i couldn`t find enough information how to make it.
For example, i have a POM project (MAVEN), where i have files:
auto.features (steps cucumber) (step defenition java) (java logic code)
i need:
in .feature:
Scenario: Load and Performance testing

  • Execute load testing using “BasicSimulation” file

create code running BasicSimulation.scala file
in BasicSimulation.scala there is scala code describing load testing

help please!


Did you check the functional specs? Perhaps you can manage to do want you want.

But keep in mind gatling was designed as an app, not a library. Some things may not work like you want.