Topic: railsbench - how to set the session after logging in

Hello,

I am using railsbench 0.9.2 and trying to measure the performance of our app. The scenario I have is:

1. Login using a test user  (POST request with parameters)
2. Retrive the welcome page (POST request, no parameters
3. Retrive a list of users (POST request, no parameters)

The login works fine but the subsequent requests (welcome, users) fail saying they need a valid user login (this is based on the before filter in our application that says for visiting the welcome page or other pages the user had to be logged in).

Question is  how would I maintain the session info after logging in and passing that to the welcome page or the users page ?

I tried the new_session (true) in the benchmarks.yml and it didn't make a difference.  I don't know how to use the session_data value in the benchmark config file.

If any of you are using railsbench in a similar scenario, please let me know what I can do to make this work.

Kannan