# Call swagger codegen scala from Gatling

**URL:** <https://community.gatling.io/t/call-swagger-codegen-scala-from-gatling/3364>\
**Category:** Gatling (Open-Source)\
**Created:** [November 4, 2016, 3:02pm UTC](https://community.gatling.io/t/call-swagger-codegen-scala-from-gatling/3364 "2016-11-04T15:02:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yordan\_Borisov](https://avatars.discourse-cdn.com/v4/letter/y/d26b3c/32.png) [@Yordan\_Borisov](https://community.gatling.io/u/Yordan_Borisov)\
**Post date:** [November 4, 2016, 3:02pm UTC](https://community.gatling.io/t/call-swagger-codegen-scala-from-gatling/3364/1 "2016-11-04T15:02:14Z")

</div>

How I can call a normal Scala class generated from swagger-codegen into my Gatling scenario test so the generation of the reports will be successfully.  
Currently I am executing the gatling test with maven : mvn test  
The Simulation class is invoked but this exception occur:

Caused by: java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won’t be generated  
at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:48)  
at io.gatling.app.LogFileProcessor.generateReports(RunResultProcessor.scala:64)  
at io.gatling.app.LogFileProcessor.processRunResult(RunResultProcessor.scala:43)  
at io.gatling.app.Gatling.start(Gatling.scala:66)  
at io.gatling.app.Gatling$.start(Gatling.scala:57)  
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:49)  
at io.gatling.app.Gatling$.main(Gatling.scala:43)  
at io.gatling.app.Gatling.main(Gatling.scala)

and maven mark the build as failure. But there are requests but not called with Gatling ChainBuilder - they are generated with Jersey.  
Can I execute Gatling scenario with reports generation using external Scala classes?
