Hi,
I am running the simple test case to get a get method and I am getting the error as below:
my scala test file is as below: Any ideas ? thanks in advanced.
package basic
import com.excilys.ebi.gatling.core.Predef._
import com.excilys.ebi.gatling.http.Predef._
import com.excilys.ebi.gatling.jdbc.Predef._
import akka.util.duration._
import bootstrap._
import assertions._
class gettest extends Simulation {
// your code starts here
val scn = scenario(“My scenario”)
.exec(http(“My Page”)
.get(“http://localhost:8080/pub/v1.0/Service/health”))
setUp(scn.users(10))
// your code ends here
}
Simulation basic.gettest started…
[ERROR] [01/12/2015 13:10:00.500] [GatlingSystem-akka.actor.default-dispatcher-7] [akka.dispatch.Dispatcher] Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.(Socket.java:425)
at java.net.Socket.(Socket.java:208)
at com.excilys.ebi.gatling.metrics.GraphiteDataWriter.newWriter(GraphiteDataWriter.scala:53)
at com.excilys.ebi.gatling.metrics.GraphiteDataWriter.onInitializeDataWriter(GraphiteDataWriter.scala:61)
at com.excilys.ebi.gatling.core.result.writer.DataWriter$$anonfun$uninitialized$1$$anonfun$apply$2.apply(DataWriter.scala:115)
at com.excilys.ebi.gatling.core.result.writer.DataWriter$$anonfun$uninitialized$1$$anonfun$apply$2.apply(DataWriter.scala:111)
at akka.dispatch.Future$$anonfun$onSuccess$1.apply(Future.scala:484)
at akka.dispatch.Future$$anonfun$onSuccess$1.apply(Future.scala:483)
at akka.dispatch.DefaultPromise.akka$dispatch$DefaultPromise$$notifyCompleted(Future.scala:943)
at akka.dispatch.DefaultPromise$$anonfun$onComplete$1.apply$mcV$sp(Future.scala:937)
at akka.dispatch.Future$$anon$4$$anonfun$run$1.apply$mcV$sp(Future.scala:386)
at akka.dispatch.Future$$anon$4$$anonfun$run$1.apply(Future.scala:378)
at akka.dispatch.Future$$anon$4$$anonfun$run$1.apply(Future.scala:378)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57)
at akka.dispatch.Future$$anon$4.run(Future.scala:378)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:94)
at akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1381)
at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259)
at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479)
at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
Exception in thread “main” java.util.concurrent.TimeoutException: Futures timed out after [5000] milliseconds
at akka.dispatch.DefaultPromise.ready(Future.scala:870)
at akka.dispatch.DefaultPromise.result(Future.scala:874)
at akka.dispatch.Await$.result(Future.scala:74)
at com.excilys.ebi.gatling.core.runner.Runner.run(Runner.scala:58)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$15.apply(Gatling.scala:102)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$15.apply(Gatling.scala:94)
at scala.Option.getOrElse(Option.scala:108)
at com.excilys.ebi.gatling.app.Gatling.start(Gatling.scala:94)
at com.excilys.ebi.gatling.app.Gatling$.fromMap(Gatling.scala:54)
at com.excilys.ebi.gatling.app.Gatling$.runGatling(Gatling.scala:74)
at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:49)
at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)