I an getting the error while running the script for the default magento checkout. The rest of the script is working properly but on checkout getting 403 error. I am not getting why it is happening. So anyone can help me.
1 Answer
HTTP Response code 403 stands for Forbidden, the most likely your login attempt did not succeeded or application expects some parameter.
Add View Results Tree listener and inspect requests and responses to detect if they match your expectations.
For successful logging into a Magento application you need the following:
- Make sure you add HTTP Cookie Manager to your Test Plan
Make sure you extract
form_key
parameter from the first response and pass it with the next request. It can be done with:
For instance, "good" CSS/JQuery Extractor configuration to get form_key
value will look like:
Refer extracted value as ${FORM_KEY}
where required.