URLHammer takes a number of command line arguments so that you can implement your tests in the manner that best fits your site. Use the following syntax:
java atg.core.net.URLHammerURL
|script_pathname
threads
iterations
[optional arguments
]
The following URLHammer arguments are required:
Required Arguments | Description |
---|---|
URL or | The URL to use in each request. The URL must begin with |
| Number of independent thread connections to create to the HTTP server. Use a value from 1 to 20. All threads run concurrently. |
| Number of requests to issue on each thread. If the |
The following URLHammer arguments are optional:
Optional Arguments | Description |
---|---|
| Enables you to set a cookie. For example:
|
| Enables you to define a header. You can define multiple headers; for example:
|
| Returns |
| Output statistics to the specified HTML file. This argument gives detailed statistics about the amount of time consumed by each individual URL you requested. It also gives summary statistics about the number of errors encountered. By default, URLHammer outputs these statistics to the console. |
| Limits the number of redirects that can be generated. |
| Use only with the |
| Use only with the Note: Entering passwords as command line arguments entails some security risks. Do not enter passwords as command line arguments in situations where security is a top priority. |
| Use only with the
If you use a negative value, then URLHammer pauses for a random amount of time, not to exceed the absolute value of the value you use. For example, the following argument causes URLHammer to pause a random amount between 0 and 550 milliseconds between each request:
|
| Simulates the browser’s stop button by randomly closing the connection to the server for 20% of the requests. |
| Outputs statistics for each request. Use this argument with the |
| Prints information periodically for each thread. This allows you to get an idea of how long runs are proceeding. |
| Instead of making a request to a single URL, each thread instead executes a script of user browser actions. See The -script Argument. |
| Name of the server and the port number to use if you are using the |
| Simulates the browser’s stop button by closing the connection to the server for |
| Use only with the Before each request, URLHammer substitutes these keywords with a random string, a continually incremented counter, or the current time in milliseconds. You can use this argument, for example, to generate unique login IDs when load testing login forms. |
| Use only with the |
| Dumps the complete output of the request (including request headers). This argument is very valuable when testing a new script or the first time you execute a command, so that you can inspect the output generated. |