Loadrunner Vuser Virtual user Script

Loadrunner Vuser Virtual user Script
Vuser scripts are created by Virtual User Generator with the recording of activities between client and server. It records the scripts. These ascripts are used to emulate the steps of real human users. Using Vugen, we can also run the scripts for debugging.
VuGen can be used for recording in windows platforms. But, a recorded Vuser script can also be run on Unix platform.
Developing Vuser Script is a five step process:
*Record a Vuser script
*Vuser Script Enhancement – by adding the control statements and other functions
*Run time Settings Configuration
*Running of Vuser Script on Stand Alone machine – Verify that the script runs correctly
*Integration of Vuser Script – into a LoadRunner scenario or Performance Center or Tuning module session or Business process monitor profile etc.
When you record a Vuser script, VuGen generates Vuser functions and inserts them into the script. There are two types of Vuser functions:
*General Vuser Functions and Protocol-Specific Vuser Functions
Both these functions together form the Mercury VuGen API. It enables Vusers to communicate directly with the server.
There are two types of Vuser scripts:
1.Single protocol Vuser script
2.Multiple protocol Vuser script. Here, we have the option to specify which protocols to record
Three sections of a Vuser script:
1.vuser_init – It is used when recording a login to a server and it is executed when the Vuser is initialized
2.Actions – It is used when recording a client activity and it is executed when the Vuser is in Running status
3.vuser_end – It is used when recording a logoff procedure and it is executed when the Vuser finishes or is stopped

No comments: