my code:
class shop extends Simulation {
val userCount = 50000
val duringTime = 180
val url = http.baseUrl("https://www.xyz.com")
val headerInfo = Map(
"Accept" -> "application/json",
"Cookie" -> "token=${token}",
"Content-Type" -> "application/json"
)
def getPurchaseLimitCountFromDetail = scenario("getPurchaseLimitCountFromDetail")
.feed(user)
.exec(
http("getPurchaseLimitCountFromDetail")
.get("/rest/app/detail?item=123")
.headers(headerInfo)
.check(status.is(200))
)
var setUpList = List[PopulationBuilder]()
setUpList :::= List(getPurchaseLimitCountFromDetail.inject(constantUsersPerSec(userCount) during (duringTime)).protocols(url))
setUp(setUpList)
}
Why number of active users high when begin to run test? thanks!