LoadRunner Files

LoadRunner Files

Files Required for Playback during the course of recording and replay of scripts, the Vugen application will create many files, but only some of them are necessary for playback (either in Vugen or the Controller).

For example, say you have script named testabc, with two Actions, Forum1 and Forum2, then the required files you would need in the testabc script directory would be:

  • testabc.usr
  • default.usp
  • default.cfg
  • globals.h
  • Forum1.c
  • Forum2.c
  • vuser_init.c
  • vuser_end.c
  • testabc.prm

Each files are explained in detail:

testabc.usr: Primarily, the .usr file defines what all actions are used by the script. There are other properties which define which protocols are used and other settings, but most of the info

default.usp: Contains the run logic for the script.

default.cfg: Contains the run-time settings (except for run-logic).

globals.h: The global headers file- visible and editable in Vugen.

*.c (Action files): These are the action files containing your script code. You can edit these files in any available text editor; at times it is easier than starting up Vugen.

testabc.prm: Containes the parameter definitions.

*.dat: Your data files, you can save these in the script directory or somewhere else, even on a mapped network drive on a different server.

 

Files Created During Vugen Playback/Replay.

All the files listed below can safely be deleted and not affect your ability to use the script.

result1: One or more result directories are created which contain script playback results.

*.idx: The .idx files are binary “index” files created by Vugen for holding parameter values of testabc.ci:

combined_testabc.c: A list of #includes for all of your Actions.

logfile.log, mdrv.log: random log files which you will probably never need to use it.

mdrv_cmd.txt, options.txt: These text files contain commands and arguments for the script compiler and driver (mdrv) and are created dynamically, so you can safely delete or remove them.

output.txt: This file contains all of the log messages generated during script Replay. The contents of this file appear in the “Output Window” section of Vugen.

output.bak : A backup of the output.txt file.

pre_cci.c: Output from the C pre-processor, which contains all of the functions, used in your vuser script, from all of the Actions and header files.

In summary, you can remove or delete: *.txt, *.log, *.idx, *.bak, result*, pre_cci.c, combined_*, *.ci

Files Created During Recording

The ‘data’ directory in our script directory contains the script recording data. We should usually delete this so it doesn’t get checked into our version control system, but you may want to keep it around if you use the graphical scripting mode and/or you want to compare replay vs. recording. The auto-correlation feature makes use of this data, too.