JMeter, authenticity token has been encoded, how to decode -
my script authenticity token first page, pass second page got error when running test:
{"errors":{"error:":["actioncontroller::invalidauthenticitytoken"]}}
i checked token variable, apparently string such /, = has been encoded %2f , %3d etc..
on second page's http request window, have not selected "encoded" token variable defined in "send parameters request" section.
apparently problem did not asked encoded variable, jmeter encode it. known bug or should decode or there work around on issue?
did pass token in post data?
i'v faced same problem , pass body data work around, need:
- select http sampler
- switch "parameter" "body data" tab (you have delete parameters it)
- write body data (variable substitution works)
body data example:
username=some_name&token=abracadabra
nb, if need encoded, you'll have manually.
Comments
Post a Comment