Gatling Recording Static resources - Failure during execution

Hi,

I’m trying to record webpage navigation along with static resources, as all static resources served from server. (CDN approach may be used in future)

When I try to run the recorded script, I’m seeing following errors Status 400 for some of static resources, where as expected Status code : 302.
when I do manual navigation of webpage, I’m just seeing either status code 200 or 304. not seeing 400 - which is potential indication of gateway timeout.

19:08:03.246 [WARN ] c.e.e.g.h.a.GatlingAsyncHandlerActor - Request ‘request_105’ failed : Check ‘is’ failed, found 400 but expected 304

19:08:03.246 [WARN ] c.e.e.g.h.a.GatlingAsyncHandlerActor - Request ‘request_107’ failed : Check ‘is’ failed, found 400 but expected 304

19:08:03.247 [WARN ] c.e.e.g.h.a.GatlingAsyncHandlerActor - Request ‘request_107’ failed : Check ‘is’ failed, found 400 but expected 304

The failure does not appear when I record script, without static resources (Added filters in Recorder for .js, .css etc…)

Could you please advise, if there is any alternative to resolve this kind of issue.

Thanks,
Raja

testfile.scala (21.1 KB)

Version?
Does this only happens under load or with just one single user?

Hello Stephane,

Many thanks for quick response.

I’m using Gatling version 1.5.6.
This issue is resolved, appears to be my local environment issue.

Best Regards,
Raja

Glad to hear.
Thanks!

hi Raja,
can you please share what was your local issues?
i’m experiencing the same issue

Thanks,
Dor

Hi Raja,

Could you explain your local environment issue? I met the same problem,

Thanks,

Lindaja

在 2014年7月31日星期四UTC-4上午4时52分34秒,Raja写道: