swagger-api/swagger-codegen

Gatling and Scala generation

Open

#4,132 建立於 2016年11月4日

在 GitHub 查看
 (10 留言) (0 反應) (0 負責人)HTML (5,474 fork)batch import
Client: ScalaEnhancement: Featurehelp wanted

倉庫指標

Star
 (12,701 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南