Recording a Session
When a WebObjects application is launched in recording mode, it saves each request and response made to a recording file (which has an extension of .rec ). You specify the path designating this file with the -WORecordingPath flag, which also serves as a switch to turn on recording. The application automatically appends the .rec extension to the given filename and creates a directory, if one doesn't exist, with the given path.
To run an application in recording mode:
- Start the application on a command line similar to the following:
- Using a web browser, run a session of your WebObjects application.
- Stop the application to stop recording
myApplication -WOAutoOpenInBrowser NO -WORecordingPath /tmp/TestMyApp/tape1
This command creates the file /tmp/TestMyApp/tape1.rec .
You might want to record what you believe to be a typical session, or you might want to record a session that puts a maximum load on your application. For example, you may want to record a session that performs as many database fetches as possible. As you run the application, the WebObjects recording adaptor writes each request and response to the recording file.
Keep in mind that all request and responses are saved to disk, so it's recommended that only one user (that is, one session) access the application while recording is underway. You can later play back a recorded session multiple times to simulate more users.
© 1999 Apple Computer, Inc. (Last Updated 25 August 99)