Hey all, new to gatling and trying to reproduce a scenario where a user checks out an item in a web store. Gatling will add items to my cart but fails to complete the process. I believe I’ve tracked the problem down to this bit of code on the checkout page:
The relevant section in the recored script looks like this:
Any way to send the save event or should I just settle with filling my cart without actually completing the checkout process?
Could you explain what doesn’t work exactly?
The browser should have recorded the HTTP request issued by review.save(); + submit.
I would have thought that the “/checkout/onepage/saveOrder/” POST was actually that.
The product are being loaded in the cart but not being checked out for some reason. I’ve gone through the process step by step and Gatling is sending correct parameter settings for various check boxes along the way, but the final step seems suspect due to an unnecessary
that was already set several steps before in the process. And you are correct, the post is supposed to submit the form. I’m really not sure what the problem could be.
Could you uncomment the logger in logback.xml so that we can see what’s going on the wire exactly, please?
I suspect an encoding issue with the square brackets in payment[method].
This is strange… I turned on the logger and ran the script again and this time it completed the process without a hitch - I just bought myself a whole bunch of ladies shoes
Now I’m thinking it may have had to do with network problems where the process was breaking because various steps were failing (and they’re all necessary to complete the checkout.
Anyway, thanks for your help Stephane!
Glad to hear.
Feel free to contact again if you run into new problems.