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-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.