swagger-api/swagger-codegen

Gatling and Scala generation

Open

#4132 aperta il 4 nov 2016

Vedi su GitHub
 (10 commenti) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Client: ScalaEnhancement: Featurehelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Swagger-codegen

I want to use the generated scala classes in a Gatling test scenario. But no gatling report is generated because no execution chain is invoked in the generated InvokeApi. I am using eclipse.

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)

Swagger-codegen version

2.2.1

Swagger declaration file content or url
Command line used for generation

Scala Scala-editor - manually convert the swagger.json Java 8 STS Maven

Steps to reproduce
  1. Get a REST server swagger json
  2. Use it to generate scala client code.
  3. Try to create a Gatling scenario with the generated scala classes.
  4. Start the gatling test.
Related issues
Suggest a Fix

Introduce a Gatling scala code generation option and add it in Swagger-editor

Guida contributor