# using gatling with bdd cucumber steps

**URL:** <https://community.gatling.io/t/using-gatling-with-bdd-cucumber-steps/6112>\
**Category:** Gatling (Open-Source)\
**Created:** [May 23, 2021, 12:38pm UTC](https://community.gatling.io/t/using-gatling-with-bdd-cucumber-steps/6112 "2021-05-23T12:38:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user10](https://avatars.discourse-cdn.com/v4/letter/u/d2c977/32.png) [@user10](https://community.gatling.io/u/user10)\
**Post date:** [May 23, 2021, 12:38pm UTC](https://community.gatling.io/t/using-gatling-with-bdd-cucumber-steps/6112/1 "2021-05-23T12:38:22Z")

</div>

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)  
autoStep.java (step defenition java)  
autoPage.java (java logic code)  
i need:  
in .feature:  
Scenario: Load and Performance testing

- Execute load testing using “BasicSimulation” file

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

help please!

---

<div class="post-metadata">

**Author:** ![sbrevet](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/sbrevet/32/830_2.png) [@sbrevet](https://community.gatling.io/u/sbrevet)\
**Post date:** [May 23, 2021, 7:14pm UTC](https://community.gatling.io/t/using-gatling-with-bdd-cucumber-steps/6112/2 "2021-05-23T19:14:24Z")

</div>

Hi!

Did you check the [functional specs](https://gatling.io/docs/current/general/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.

Cheers!
