Posted on Nov 15 2007 - 12:22pm by Raj


Objectives of this Article

  •   Introduction to Virtual User Technology
  •   Record scripts
  •   General options
  •   Recording options
  •   Runtime options
  •   Replay recorded scripts

Virtual User Technology

  •   Simulates a real user
  •   Requires less resources – machines and people
  •   Greater control over test execution
  •   Can synchronize actions performed by users
  •   Collect and analyze results in a better way
  •   VUsers can communicate directly with a server by executing calls to the
  •   server API-without relying on client software



  •   Capture a business transaction by recording user actions performed
  •   Monitors the communication between the application and the server
  •   Generates the required function calls
  •   Inserts the generated function calls into a Vuser script

Recording a Script


New VUser

  1.   Click on New Vuser
  2.   Select the new Virtual User from the list of protocols
  3.   Click OK
  4.   The required header files are automatically included in the script

Vuser Script Sections


Script Section
Used when recording…
Is executed when…
a login to a server
the Vuser is initialized (loaded)
client activity
the Vuser is in "Running" status
a logoff procedure
the Vuser finishes or is stopped

Recording Options

Recording Mode
This allows us to specify the information to be recorded and which functions to be used when generating a script

  •   HTML Mode
  •   URL Mode


The HTML mode is based on user actions, and the scripts contain functions that correspond directly to the action taken.


web_link(“Enterprise Systems Performance",
"Text=Enterprise Systems Performance ",

URL Mode

The URL mode is based on HTTP requests sent to the server as a result of user actions.
. . .
web_url(“Enterprise Systems Performance",
"Referer=http:// . . ,

Deciding on Recording Mode

HTML Mode 

URL Mode 

 Intuitive and easy to understand

Not as intuitive as the HTML scripts 


More scalable and effective for creating a load test 

Deciding on Modes

  •   For browser applications, use HTML mode.
  •   For non-browser applications, use URL mode.

Note: The option of mixing recording modes is available for very advanced users for performance tuning


Other Recording Options 

Selecting the Browser


Proxy Settings


Advanced Settings

Recording Scripts


  1.   Click on Red Record Button  
  2. Record dialog box pops up.

  1.   Click black Stop button to end recording
  2.   Save the script.

  Record user transaction is the appropriate sections
  Do not name a script init, run, or end, as these names are used by VuGen.

About the Author

Leave A Response