You need to extract the authenticity_token from the page each time it loads and add it to your form post. How to instructions are provided here: http://ertw.com/blog/2010/06/29/load-testing-a-rails-app-and-the-authenticity_token/
On Thursday, February 25, 2010 9:30:30 AM UTC-8, Ruby-Forum.com User wrote: > > I started playing with JMeter to load test a rails app. I have it > working for th most part but I am having a problem with > InvalidAuthenticityToken when posting forms. > > The problem is that JMeter is recording the InvalidAuthenticityToken > value to post when it runs the test. Of course its valid when recording > but when I play back the token is no longer valid. > > Anyone gotten around this? > > Any other free load testing tools (that have a record feature) that > might work better? > -- > Posted via http://www.ruby-forum.com/. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/fJHvS6X7HaMJ. For more options, visit https://groups.google.com/groups/opt_out.