I am using a CSV feeder to feed multiple simulations. When run using gatlingRun, every simulation starts reading the file from the beginning. I am keeping the feeder in an object variable (must behave like a static variable):
object MyFeed {
val dataFile: String = Settings.dataFile
val randomFeeder = feed(tsv(dataFile))
}
object MySimulation extends Simulation{
val myScenario: ChainBuilder = MyFeed.randomFeeder
}
Is there a way to make all simulation use the same instance of the feeder or make each one continue where the others finished?
Gatling doesn't have any memory that survives between simulations. You'd have to implement this yourself.