HP VuGen Certification

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

HP VuGen

Chapter 1
During recording VuGen monitors the client end of the database and traces all the requests
sent by the user and received from the user, to the server.
During playback, Vuser scripts communicate directly with the server by executing calls to the
server API. When a Vuser communicates directly with a server, system resources are not
required for the client interface. This lets you run a large number of Vusers simultaneously on a
single workstation, and enables you to use only a few testing machines to emulate large server
loads.

Chapter 2
Running scripts from VuGen is useful for debugging.
VuGen records Vuser scripts on Windows platforms only. However, a recorded Vuser script can
be run on both Windows and UNIX platforms.

Understanding the VuGen Environment Option


Tools->General Option->Environment
Editor (If Check box not selected by default)
Auto show function syntax- Ctrl+Shift+Sapce
Auto Complete Word- Ctrl+Space
Select Font
Only Fix size font get selected.
Viewing and Modifying Vuser Script
a Text based Script view
an icon based Tree view
a icon based thumbnail view

If you make changes to a Vuser script while in the Script view, VuGen makes the corresponding
changes in the Tree view of the Vuser script. If VuGen is unable to interpret the text-based
changes that were made, it will not convert the Script view into Tree or Thumbnail view.

To insert a step in Tree view


Inserting a step after a parent node results in the detachment of the children nodes
from the parent node.
Understanding the snapshot
The snapshot shows the client window after the step was executed.Each time you replay
the script, VuGen saves another Replay snapshot to the script’s result directory: Iteration1,
Iteration2, and so forth. By default, VuGen compares the recording snapshot to the first replay
snapshot. You may, however, select a different snapshot for comparison.
Multiple snapshot
In several protocols such as Microsoft Remote Desktop Protocol (RDP), you can view
multiple snapshots for a single step. This occurs when a mismatch occurs during replay and you
choose to append the new image to the step.
Troubleshooting Snapshots
If you encounter a step without a snapshot, follow these guidelines to determine why it
is not available. Note that not all steps are associated with snapshots—only steps with screen
operations or for Web, showing browser window content, have snapshots.Several protocols
allow you to disable the capturing of snapshots during recording using the Recording options.
If there is no Record snapshot displayed for the selected step, it may be due to one of the
following reasons:
The script was recorded with a VuGen version 6.02 or earlier.
Snapshots are not generated for certain types of steps.
The imported actions do not contain snapshots.
If there is no Replay snapshot displayed for the selected step, it may be due to one of the
following reasons:
The script was recorded with VuGen version 6.02 or earlier.
The imported actions do not contain snapshots.
The Vuser files are stored in a read-only directory, and VuGen could not save the replay
snapshots.
The step represents navigation to a resource.

Snapshot Files – extension of snapshot files .inf

Setting the mode for Viewing Actions


Open Automatically
Open in Tree Mode
Open in Script Mode
Viewing Thumbnails in the Workflow Wizard
Study Later
Using the XML Viewer
Study Later

Running Vuser Scripts with VuGen

When you run a Vuser script, it is processed by an interpreter and then executed. You
do not need to compile the script. Advanced users can compile a recorded script to create an
executable program.

Understanding VuGen code

General Vuser Function


Protocol-Specific Vuser Function
General Vuser Function + Protocol-Specific Vuser Function = LoadRunner API

General Vuser Function- LR Functions enable you to do:


Get run-time information about a Vuser, its Vuser Group, and its host.
Add transactions and synchronization points to a Vuser script.
Send messages to the output, indicating an error or a warning.

By default, VuGen’s automatic script generator creates Vuser scripts in C for most protocols,
and in Java for Java type protocols. You can instruct VuGen to generate code in Visual Basic or
Javascript.

Note: The C Interpreter used for running Vuser scripts written in C, only supports the ANSI C
language. It does not support the Microsoft extensions to ANSI C.

Header File

All of the non-Java function prototypes are listed in the library header files. The header
files are located within the include directory of the product installation. They include detailed
syntax information and return values. They also include definitions of constants, availability,
and other advanced information that may not have been included in the Function Reference. In
most cases, the name of the header file corresponds to the prefix of the protocol. For example,
Database functions that begin with an lrd prefix, are listed in the lrd.h file.

The following table lists the header files associated with the most commonly used protocols:
Protocol File
AJAX (Click andScript) web_ajax.h
Citrix ctrxfuncs.h
COM/DCOM lrc.h
Database lrd.h
FTP mic_ftp.h
General C function lrun.h
IMAP mic_imap.h
LDAP mic_mldap.h
MAPI mic_mapi.h
Oracle NCA orafuncs.h
POP3 mic_pop3.h
RDP lrrdp.h
SAPGUI as_sapgui.h
SAP (Click and Script) sap_api.h
Siebel lrdsiebel.h
SMTP mic_smtp.h
Terminal Emulator lrrte.h
WAP as_wap.h
Web (HTML\HTTP) as_web.h
Web (Click and Script) web_api.h
Web Services wssoap.h
Windows Sockets lrs.h

You might also like