Newbie question: .body(file) -> Not found

I’ve recorded a scenario with the recorder.

I get something like this:

class SimulationAPS1 extends Simulation {

val httpProtocol = http
.baseURL(“http://localhost:9090”)
.proxy(“localhost”,9090).httpsPort(443)

val headers_13 = Map( )

val scn = scenario(“Scenario Name”)

.exec(http(“request_13”)
.put("""/aps/corp/ajourhold/person/updatelist""")
.headers(headers_13)
.body(RawFileBody(“RecordedSimulationTest1_request_13.txt”))
.check(status.is(500)))

The file “RecordedSimulationTest1_request_13.txt” exists in the “src/test/resources/request-bodies” directory of the project.

Why am I getting:

10:40:11.104 [ERROR] i.g.h.a.HttpRequestAction - file RecordedSimulationTest1_request_13.txt doesn’t exist

I get this for all similar requests as well. Any ideas?

Thanks,
Håkon

It would be prudent of me to include versions : gatling 2.0.0-M3a, Scala 2.10.2, Java JDK 1.6.0_45

Håkon

kl. 11:13:31 UTC+2 tirsdag 15. april 2014 skrev Håkon Sønderland følgende:

Hi Hakon,

Do you think you could give snapshot a try?
https://github.com/excilys/gatling/wiki/Continuous-Integration

2M3a is quite old and we’re about to enter Gatling 2 release candidate phase.

Stéphane

Thanks,

After updating I now get the following warnings:

[WARNING] Expected all dependencies to require Scala version: 2.10.2
[WARNING] io.gatling.highcharts:gatling-charts-highcharts:2.0.0-SNAPSHOT requires scala version: 2.10.2
[WARNING] io.gatling:gatling-charts:2.0.0-SNAPSHOT requires scala version: 2.10.2
[WARNING] io.gatling:gatling-app:2.0.0-SNAPSHOT requires scala version: 2.10.2
[WARNING] io.gatling:gatling-core:2.0.0-SNAPSHOT requires scala version: 2.10.4
[WARNING] Multiple versions of scala libraries detected!

Should I be concerned?

Will try out the new recorder and report back.

Håkon

kl. 11:22:35 UTC+2 tirsdag 15. april 2014 skrev Stéphane Landelle følgende:

Hi again,

The recorder seem to be working fin, but when I try to run the Engine (from within Eclipse) I get this:

Exception in thread “main” java.lang.NoClassDefFoundError: scala/collection/Seq
at io.gatling.app.ZincCompiler.main(ZincCompiler.scala)
Caused by: java.lang.ClassNotFoundException: scala.collection.Seq
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
… 1 more
Compilation failed

This is with Eclipse Kepler 4.3.

Any suggestions?

Håkon

kl. 11:13:31 UTC+2 tirsdag 15. april 2014 skrev Håkon Sønderland følgende:

Weird non sense.

All modules are built with 2.10.4 (you can check poms: https://oss.sonatype.org/content/repositories/snapshots/io/gatling/highcharts/gatling-charts-highcharts/2.0.0-SNAPSHOT/gatling-charts-highcharts-2.0.0-SNAPSHOT.pom).

Which version of Scala IDE do you use? Are you sure you have a version that’s for Scala 2.10?

I had to manually update the Engine.scala file from the 2.0.0-SNAPSHOT files to make it work.

Thank you for your help.

Håkon

kl. 14:48:40 UTC+2 tirsdag 15. april 2014 skrev Stéphane Landelle følgende: