swagger-api/swagger-codegen

Gatling and Scala generation

Open

#4.132 geöffnet am 4. Nov. 2016

Auf GitHub ansehen
 (10 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (5.474 Forks)batch import
Client: ScalaEnhancement: Featurehelp wanted

Repository-Metriken

Stars
 (12.701 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide