Requests not being sent

While running https://github.com/witokondoria/gatlingELtest/tree/mvn-profiles with mvn -U test -PPRE, no request are being sent as part of the scenario.

It seems the culprit is src/test/scala/tests/PrePT.scala, line 16: .body(ELFileBody(“DS.txt”)).asJSON, as commenting it gives the simulated user sending requests. Wiping the .asJSON doesnt modify the initial behavious, so the issue seems to be related to ELFileBody, and the EL function toJsonValue() used at src/test/resources/DS.txt (as simplifying the json object fixes everything)

Im using the current snapshots for maven plugin and highcharts

Regards

What do you mean by “Requests not being sent”?

  • sending requests crash?
  • not sending requests at all?
  • sending less requests than expected?

They are not being sent at all, The only request it is being made is te warm up one.

Have you tried lowering logging level in logback.xml?

Yes, setting the root level to ALL doesnt throw an error. What seems weird is that logs the scenario end before the user start:
An almost full log is:

Simulation tests.PrePT started…
16:57:14.085 [INFO ] i.g.h.c.HttpProtocol - Start warm up
16:57:14.110 [DEBUG] o.j.n.c.s.n.SelectorUtil - Using select timeout of 500
16:57:14.110 [DEBUG] o.j.n.c.s.n.SelectorUtil - Epoll-bug workaround enabled = false
16:57:14.167 [DEBUG] o.j.n.c.DefaultChannelFuture - The dead lock checker in DefaultChannelFuture has been disabled as requested at your own risk.
16:57:14.215 [DEBUG] c.n.h.c.p.n.r.NettyConnectListener - Request using non cached Channel ‘[id: 0xaca9bc7f, /172.19.0.145:36709 => /10.200.0.16:9000]’:
DefaultHttpRequest(chunked: false)
GET / HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0
Host: 10.200.0.16:9000

16:57:14.233 [DEBUG] c.n.h.c.p.n.h.HttpProtocol -

Request DefaultHttpRequest(chunked: false)
GET / HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0
Host: 10.200.0.16:9000

Response DefaultHttpResponse(chunked: false)
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Request-Time: 3
Content-Length: 452

16:57:14.235 [DEBUG] c.n.h.c.p.n.c.ChannelManager - Adding key: http://10.200.0.16:9000 for channel [id: 0xaca9bc7f, /172.19.0.145:36709 => /10.200.0.16:9000]
16:57:14.239 [INFO ] i.g.h.c.HttpProtocol - Warm up done
16:57:14.255 [INFO ] i.g.c.c.Controller - Total number of users : 1
16:57:14.262 [INFO ] i.g.c.r.w.FileDataWriter - Initializing
16:57:14.263 [INFO ] i.g.c.r.w.ConsoleDataWriter - Initializing
16:57:14.267 [INFO ] i.g.c.r.w.ConsoleDataWriter - Initialized
16:57:14.271 [INFO ] i.g.c.r.w.FileDataWriter - Initialized
16:57:14.273 [DEBUG] i.g.c.c.Controller - Launching All Scenarios
16:57:14.277 [DEBUG] i.g.c.c.Controller - Finished Launching scenarios executions
16:57:14.277 [DEBUG] i.g.c.c.Controller - Setting up max duration
16:57:14.278 [INFO ] i.g.c.c.Controller - Start user #3527997446084444563-0

I suspect this is caused by https://github.com/gatling/gatling/commit/e87c00a691b014610d663eadefe38676ab56f9b6

Investigating…

This is actually caused by https://github.com/gatling/gatling/issues/2405.
You have to rename accordingly in DS.txt.

Generally speaking, if you’re using the snapshots and use brand new, ie unstable features, please watch the repository.

Then, it seems there’s a EL compiler failure when the EL function is unknown. Investigating.