How to setup a delay time before user actions or processing time.

The time parameter value on the SLEEP command lets you emulate delays caused by user actions or processing time. The SLEEP command does not consume CPU cycles; it only simulates a delay, not the CPU or disk overhead that a real application might use.

Standard SLEEP Variables
There are three standard SLEEP variables that you can select:

delay_before_responding
This variable lets you simulate a user delay or processing at the endpoint. Before the next script command is executed, the endpoint sleeps for the number of milliseconds specified.

transacton_delay
This variable lets you control how frequently transactions are executed. You can set the number of milliseconds to sleep before starting to execute additional commands. This is normally used to simulate an end user running a transaction on a regular basis; for example, once every 1 second.

initial_delay
The initial_delay variable is different from the other sleep variables. The longest allowable time for initial_delay is 90 minutes—that is, 5,400,000 ms. Longer values cause Endpoint 2 to time out, and the connection fails.

沒有留言:

張貼留言