Spirent Avalanche 5.46 February 29, 2024
The THINK action introduces a delay between actions in an Action list. For example, a simulated user may access a website, then pause for 10 seconds before proceeding with the next website.
When you use the THINK action in between two actions, the value that you specify is the amount of delay in milliseconds (e.g., 10000 for 10 seconds) before the next request in the Action list is processed. You can specify a literal value, a forms database reference, or a random number with the THINK command.
IMPORTANT: The delay that you specify with the THINK command is added to the User Think Time that you specified in the Client Profile. In addition, you must select the User Think Time checkbox on the Client Profile tab. If the checkbox is deselected, then think time is disabled for the test. |
NOTES:
|
THINK<10000>
ASSIGN VARIABLE <time1 10000 >
THINK<time1>
ASSIGN VARIABLE <time1 formsdb.$1>
THINK<time1>
ASSIGN VARIABLE <time1 ###>
THINK<time1>
ASSIGN VARIABLE <rand UNIFORM 10000 30000>
THINK<rand>
1 GET http://192.168.42.11/index1.html
THINK<6000>
1 GET http://192.168.42.11/index2.html
In the following three examples, the level 2 Actions will be executed immediately after the first level 1 Action, and the second level 1 Action will wait 6 seconds.
NOTE: The THINK command always gets executed prior to the next level 1 Action, even if it is appears before a level 2 Action. |
1 GET http://192.168.42.11/index1.html
THINK<6000>
2 GET http://192.168.42.11/index2.html
2 GET http://192.168.42.11/index3.html
# 6-second delay occurs here
1 GET http://192.168.42.11/index4.html
1 GET http://192.168.42.11/index1.html
2 GET http://192.168.42.11/index2.html
THINK<6000>
2 GET http://192.168.42.11/index3.html
# 6-second delay occurs here
1 GET http://192.168.42.11/index4.html
1 GET http://192.168.42.11/index1.html
2 GET http://192.168.42.11/index2.html
2 GET http://192.168.42.11/index3.html
THINK<6000>
# 6-second delay occurs here
1 GET http://192.168.42.11/index4.html
1 GET http://192.168.42.11/index1.html
THINK<6000>
THINK<6000>
THINK<6000>
THINK<6000>
1 GET http://192.168.42.11/index2.html
© 2024 Spirent Communications, Inc. All Rights Reserved.