The -script
argument treats the URL argument as the name of a script file on the local system. This script file can contain any of the following:
URLs
URLs with POST data
URLs with POST data and session ID arguments
You can write your own script files, or you can use ATG’s Recording Servlet, which records script files that replay a previously recorded set of user actions. See Using the Recording Servlet in the Monitoring Site Performance chapter.
Script files are line-oriented ASCII text files. Each line can be in one of the following formats:
#include another_script_file
URL
URL time_in_milliseconds
URL time_in_milliseconds #_lines_of_post_data
post_data
post_data
post_data
...
URL time_in_millis #_lines_of_post_data session_id
post_data
post_data
post_data
...
If a line specifies a number of lines of POST data, URLHammer
reads that number of lines and passes them as URL-encoded POST data to the specified URL. Typically, lines of this form are generated by the Recording Servlet.
Note that the URLs in a script file need not contain the http://
hostname
:
port
prefix, since the full URL can be constructed using the host and port number specified by the -server
command line argument. This allows you to reuse the same script to test different servers.