How do we run Vugen script periodically?
Posted: April 21st, 2000 | Author: TnT Admin | Filed under: How-Tos | Tags: Scripting | No Comments »I happened to bump into this great tool that will help you in running your Vugen script periodically! This is much like the HP Business Availability Center (BAC) Business Process Manager (BPM) component where you define the script to run at a certain time and ensuring that all parts that the vuser traverse are functioning properly. (Source: One Stop Testing Forum)
In order to do that, we will be you need to know the (1) Scheduled Task utility in Windows and (2) the Vugen command line.
Let’s go through the steps:
1. Create a batch file with a name you desire (e.g. run_scheduled_script.bat) with the following commands.
C:\\Loadrunner\bin\mdrv.exe -usr C:\\LoadRunner\scripts\script.usr -out C:\\vugen_scheduled_scripts\logs\script.out -lr_view -drv_log_flush -drv_log_file C:\\vugen_scheduled_scripts\\logs\script.log -cci_debug -cci_trace
Where “script” is the name of the script that you want to schedule. Refer to the Vugen User Guide for more information.
2. Create a scheduled task. Go to Control Panel > Scheduled Tasks > Add Scheduled Task. From here, go through the wizard step-by-step where you will be prompted to for user accounts to run the executable, and the schedule timing. When you are completed, just wait for it to run!
Leave a Reply