Hello All,
I am a quite lost, because every time I run this scenario everything works.
import Setup._
import Test._
import scala.io.Source
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import io.gatling.core.feeder._
import io.gatling.core.json.Jackson
class Runner extends Simulation {
val httpProtocol = new configuration testProtocol
val login = new tLogin tLogin
val You = new tAdvies tYRun
val Advice = new configuration mAdvice
val Credentials = new configuration mUser // goes to => val mUser = csv(“mUser.csv”)
val scn = scenario(“Scenario”).feed(Credentials).feed(Advice)
.group(“testScenario”) {
exec(login, You)
}
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}
BUT when i run this with multiple users I get this error:
16:16:40.172 [GatlingSystem-akka.actor.default-dispatcher-17][ERROR][SingletonFeed.scala:59] i.g.c.a.SingletonFeed - Feeder is now empty, stopping engine
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: java.lang.IllegalStateException: Feeder is now empty, stopping engine
at io.gatling.core.action.SingletonFeed.feed(SingletonFeed.scala:60)
at io.gatling.core.action.SingletonFeed$$anonfun$receive$1.applyOrElse(SingletonFeed.scala:28)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at io.gatling.core.akka.BaseActor.aroundReceive(BaseActor.scala:23)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
My feeder = val mUser = csv(“mUser.csv”)
and looks like this
username,password
JohnDoe,Passmatazz
JaneDoe,Passmawzz
and so one.
tnx all really lost in this one