Configuring a serialized WebPAJBean Object |
(NOTE: This section is a little outdated and is based on old text configuration. The newest version of WebPAJ is all XML based. This section will be updated shortly but should still serve as an adequate configuration guide.)
First in your favorite text editing program open
<WebPAJHome>/config/sample.txt
or
create a new file
Your file should look similar to the two samples in <WebPAJHome>/config directory (note: if it doesn't it won't work)
Definitions of Configuration variables
- Fetch URL: <The URL to test>
- File Name: <The file to store output in>
- Number of Clients: <Expected number of clients>
- Virtual Users: <Number of Simulated users per client>
- Run Time: <The total run time of test (in milliseconds)>
- Server: <True or False, whether or not to run in server mode>
- Server Port: <Port to listen on or connect too>
- Server URL: <Server URL location or IP addrss>
Fetch URL, File name, Number of Clients, Virtual Users, Run Time, are only needed by process running in Server mode. These fields can be null for client configuration files. Server URL is only needed by client process and can be null in server mode. Server, and Server Port cannot be null for server or client. The Server Port value has to match and can't be a private port number.
Then at your command prompt run
% java -c <WebPAJHome>/bin/WebPAJ.jar webpajConfig <fileName>
This program will create a Configuration Object in the same directory as the Configuration File, with the an extension of .ser
|