if they are not for public use, maybe you can make them private?
When you are new to a project, you just look on the possible methods and try them The eclipse integration is sometimes not really working good, so most methods have no java doc for me.
I do not know if really a counter is necessary for gatling. I’m fine with the AtomicInteger.
if they are not for public use, maybe you can make them private?
Already done actually:
When you are new to a project, you just look on the possible methods and
try them
Yeah, I know. I had left them public because sometimes people come up with
very unexpected use cases and having those public helped hacking around.
But now, I think the APIs are more mature so we can better tell appart
what's to be public and what's to remain private.
Also, once we'll enter RC phase, we'll start release often like we used to.
Hi Stepane ,
I have a use case where I want to use counter value and save in variable by appending to a String.I want to save the dynamic elements based on some elements found in json EFile.The number of elements can vary ,so want to use counter logic.Can this be supported or is this already supported?
See how nicely repeat loop counter is manipulated ,It will be great if we can manipulate foreach counter like repeat counter
val scn = scenario(“PetStoreSimulation”) .exec(http(“Homepage”).get("/actions/Catalog.action")) .foreach(csvRecords, “category”) { exec(flattenMapIntoAttributes("${category}")) .exec(categoryRequest) .repeat(session => session(“productIds”).as[List[Any]].size, “productIndex”){ exec(session => { val productIds = session(“productIds”).as[List[Any]] val productIndex = session(“productIndex”).as[Int] session.set(“productId”, productIds(productIndex)) }) .exec(productRequest) } }