Debugging Gatling

Brand new to Gatling.
Using Gatling 3.3.1 on a Windows 10 64-bit machine with 32 GB of RAM

I used Google Chrome to build a .har file of an HTTPS, Okta-protected (SSO) web site.

My scenario only accesses the site and logs in. That’s it.

I successfully imported the .har file into the Google Recorder.

I edited the script only enough to run 30 users.

When I run gatling.bat script, Gatling successfully launches with no errors.

When I choose the new .scala file to run, I get quite a few errors like these:

---- Errors --------------------------------------------------------------------

request_8: Failed to build request: Resource /dealerpath/0008_ 29 (100.0%)
request.json not found

and

---- Errors --------------------------------------------------------------------

request_8: Failed to build request: Resource /dealerpath/0008_ 30 (47.62%)
request.json not found
request_20: Failed to build request: Resource /dealerpath/0020 21 (33.33%)
_request.json not found
status.find.in(200,201,202,203,204,205,206,207,208,209,304), f 12 (19.05%)
ound 403

and later

7:56:29.638 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:29.810 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:29.810 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:29.950 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:29.950 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:30.153 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:30.263 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:30.403 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:30.528 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:30.841 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:30.872 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
17:56:31.075 [ERROR] i.g.h.a.HttpRequestAction - ‘httpRequest-15’ failed to execute: Resource /dealerpath/0077_request.txt not found
---- Errors --------------------------------------------------------------------

request_8: Failed to build request: Resource /dealerpath/0008_ 30 (29.41%)
request.json not found
request_20: Failed to build request: Resource /dealerpath/0020 30 (29.41%)
_request.json not found
status.find.in(200,201,202,203,204,205,206,207,208,209,304), f 30 (29.41%)
ound 403
request_77: Failed to build request: Resource /dealerpath/0077 12 (11.76%)
_request.txt not found

The gatling.bat runs to the end, and a report is generated.

However, I checked the application activity using an APM tool (AppDynamics) and there is no sighn that I was ever vorn

How can I debut Gatling?

Is there documentation on these kinds of errors?

Thanks,
Randy

Did you manually delete those files?
Can you provide the HAR file so we can reproduce the file generation on our side and check if there’s a bug there?

Hi Stéphane -

Thank you for responding. You guys are awesome.

Anyway, I did not delete the files, and found all of them at C:\Gatling\user-files\resources\dealerpath:

I am attaching the HAR file and a couple of the “unfound” files as well.

I apologize for not having a better comprehension of what I need to do to get a working Gatling script. I hope that I can not only learn how to use the tool, but, eventually, be able to teach others. Our Product/Delivery Teams are quite reluctant to take on the learning curve of learning a new tool.

Thanks,
Randy

dealerpathcert85_deere_com02211430.zip (921 KB)

0008_request.zip (227 Bytes)

0072_request.zip (2.69 KB)

Sorry but I can’t reproduce your missing request body files issue with this sample.
All 5 bodies are properly generated and resolved from the simulation.

Thanks for your analysis.

So, does this mean I just cannot use Gatling for this site?

No. I’m saying I can’t reproduce your problem and the Simulation I generate from the HAR file you provided works just fine for me and properly locates the request body files. Just that I can’t resolve your hostname which is an internal one.

Oh, I apologize. I misunderstood.

if you were I, how would proceed to debug the issue I am seeing? Is this something that I would know if I had a better understanding of Scala?

Randy