Posted By: Doug Chasman
Date: 2006-03-07 06:59
Summary: ASF 0.4.2 adds session recording/replay support
Project: ActiveSalesforce

Ruby on Rails + ActiveSalesforce (ASF) is a very cool prototyping environment! Especially now that I am almost done with the ASF scaffolding generator that kicks out nice looking pages...

Something that could be very useful for prototyping is the generalized session recording support I added initially for unit testing performance (makes it so our utest run in 1 sec instead of 1.5 minutes) but have recently expanded to allow me to work disconnected (e.g. on the flight to ETech on Monday!).

Basically you can add something like:

recording: true
recording_source: test.recording

to your app's database.yml and run through your demo scenario and all of the sfdc api request/response pairs will be recorded to the file test.recording. When you have exercised the parts of your app you need for the demo scenario (dev/testing scenarios in my case) you shut down your server, comment out:

#recording: true

and restart your server. Now all of your responses will actually come from the recorded session file!!!

Latest News
TZInfo::Data v1.2014.2 Released
    Philip Ross - 2014-03-25 22:32
TZInfo v0.3.39 Released
    Philip Ross - 2014-03-09 20:23
TZInfo::Data v1.2014.1 Released
    Philip Ross - 2014-03-09 20:00
Automatic Ruby 14.2.0 has been released!
    id 774 - 2014-02-26 06:23
kramdown 1.3.2 released
    Thomas Leitner - 2014-02-16 08:35

 

Forums | Admin

Discussion Forums: asf-0.4.2-adds-session-recording-replay-support

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post