You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we can run gatling test according to this wiki https://karatelabs.github.io/karate/karate-gatling/
The below is an Scala example on your doc. As we know, gatling also support Java DSL, so how to use Java DSL to do same thing ?
I tried a lot of ways but no one work. could you help me ?
val create = scenario("create").exec(karateFeature("classpath:mock/cats-create.feature"))
val delete = scenario("delete").exec(karateFeature("classpath:mock/cats-delete.feature@name=delete"))
setUp(
create.inject(rampUsers(10) during (5 seconds)).protocols(protocol),
delete.inject(rampUsers(5) during (5 seconds)).protocols(protocol)
)
}
The text was updated successfully, but these errors were encountered:
we can run gatling test according to this wiki https://karatelabs.github.io/karate/karate-gatling/
The below is an Scala example on your doc. As we know, gatling also support Java DSL, so how to use Java DSL to do same thing ?
I tried a lot of ways but no one work. could you help me ?
import com.intuit.karate.gatling.PreDef._
import io.gatling.core.Predef._
import scala.concurrent.duration._
class CatsSimulation extends Simulation {
val protocol = karateProtocol(
"/cats/{id}" -> Nil,
"/cats" -> pauseFor("get" -> 15, "post" -> 25)
)
protocol.nameResolver = (req, ctx) => req.getHeader("karate-name")
protocol.runner.karateEnv("perf")
val create = scenario("create").exec(karateFeature("classpath:mock/cats-create.feature"))
val delete = scenario("delete").exec(karateFeature("classpath:mock/cats-delete.feature@name=delete"))
setUp(
create.inject(rampUsers(10) during (5 seconds)).protocols(protocol),
delete.inject(rampUsers(5) during (5 seconds)).protocols(protocol)
)
}
The text was updated successfully, but these errors were encountered: