class AmazonScalingTest extends BaseTest { val httpProtocol = http .baseURL(config.getString("url")) .userAgentHeader("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0") .contentTypeHeader("application/json; charset=UTF-8") .connection("keep-alive") .shareConnections .disableWarmUp
var addUsers = config.getInt("users")/10 var intervalTime = config.getInt("time")/10
var steps = new ListBuffer[InjectionStep]() for { i <- 1 to 10 } steps += constantUsersPerSec(addUsers*i) during (intervalTime minutes)
val scn = scenario("Amazon scaling test.") .exec(http("promotions search") .get("/customer/promotions/search") .check(status.is(200))) setUp(scn.inject( steps )).protocols(httpProtocol)}
class SearchPromotionsAtOnce extends BaseTest {
val latitude = "40.747290" ; val longitude = "-73.986667" ;
val scn = scenario("Customer search test.").during(config.getInt("users") minutes) {
.exec(http("promotions search") .get("/customer/promotions/search") .check(status.is(200))) } setUp(scn.inject(atOnceUsers(config.getInt("users"))).protocols(httpProtocol))}
--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/fphrtnJe3mU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.