I want that user can input 'Count, repeatCount, testServerUrl and
definitionId' from command line while executing from Gatling. Can
anybody please help me? TIA.
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class TestCLI extends Simulation {
val count = 50
val wait = 2
val repeatCount = 2
val testServerUrl = "Some url"
val scn = scenario("testabcd")
.repeat (repeatCount ) {
exec(http("asdfg")
.post("""/xyzapi""")
.headers(headers_0)
.body(StringBody("""{"definitionId":10200121}"""))) // I also want to get this value dynamic from CLI and put here
.pause(wait)
}
setUp(scn.inject(atOnceUsers(count))).protocols(httpProtocol)
}
--You received this message because you are subscribed to the Google Groups "Scala IDE Dev" group.To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-de...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-dev/df3cb1fc-9418-4879-ba85-1eedfbf8c1eb%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.