|
In the following example, the values of the timeout and delay test options are set for the duration of a batch test run. After the run, the previous values are restored.
static old_t,old_d;
# Saves the original timeout values in the "old_t" variable.
old_t = getvar ("timeout");
# Saves the original delay values in the "old_d" variable.
old_d = getvar ("delay");
# Set the values of timeout and delay for a batch test.
setvar ("timeout", 30);
setvar ("delay", 3);
call batch();
# At the end of the test return the values.
setvar ("timeout", old_t);
setvar ("delay", old_d); |
|