Académique Documents
Professionnel Documents
Culture Documents
______________________________________________________________________________________
you can run the script by pressing f5 of selecting vuser > run in the vugen window.
after running the script see the folder with the script name in temp folder. you can see an output.txt file. this
gives various actions performed during the run.
2. te_wait_sync();
this asks vugen to wait for “x-system” to disappear before issuing the next command.
1
running the script
______________________________________________________________________________________
2
running the script
______________________________________________________________________________________
3
running the script
______________________________________________________________________________________
4
running the script
______________________________________________________________________________________
the parameter appears in the vugen script. if you want to restore the original value instead of the parameter,
move the cursor on to the parameter , right click and select the restore original value option.
5
running the script
______________________________________________________________________________________
since we would like to run the same script for multiple users, we would like to have more rows in our data
file. to do this, click the edit button. the following window appears.
6
running the script
______________________________________________________________________________________
refer creating vuser scripts , page no 63 (updating parameter values from files) for more details on the
usage of sequential, unique etc.
7
running the script
______________________________________________________________________________________
select the iterations tab (it’s already selected in the above screen). increase the iteration count to your
choice in the “iteration count” box. note that only the action part is iterated. we can also modify the
iteration pace. the default is to start the next iteration as soon as the present iteration finishes. we can also
set the iteration to start after fixed time intervals. however if we give the time interval to be 10 seconds and
the iteration 1 takes 12 seconds, iteration 2 starts only after 12 seconds.
we suggest that iterations to be started at random intervals. this will emulate the real user behaviour.
now go to the log tab. disable logging to avoid unnecessary resource wastage.
now go to the think time tab. the default is to ignore think time. see the vuser script you recorded. you can
note the “lr_think_time(2);” functions. all these functions are disabled. however to emulate a real user
behaviour, you can change the settings.
8
running the script
______________________________________________________________________________________
we edit the file. we enter the values as shown in the next screen.
9
running the script
______________________________________________________________________________________
you can run the script using vugen again for demo. note that using vugen we can run the script for only one
vuser. but you can see that two iterations are performed at random intervals.
to add transactions :
you can add transactions in the action section only.
take the cursor to the location you want to start your transaction. now right click the mouse.
the following screen appears.
10
running the script
______________________________________________________________________________________
11
running the script
______________________________________________________________________________________
it is required to provide transactions to analyze the data generated. we will come to it later.
12