HP LoadRunner VuGen Questions Bank: Q. 11 to 20
Learn “VuGen” Module of HP LoadRunner through FAQs:
Q. 11: What types of views are provided by VuGen for examining the contents of our scripts?
VuGen provides several views for examining the contents of the script:
1) A text-based Script view: This view lets us examine the actual API functions which were recorded or inserted into the script. This view is ideal for advanced users who want to program within the script by adding “C” or Vuser API functions as well as control flow statements.
2) An icon based Tree view with snapshots, or an icon based Thumbnail view: This view shows the Vuser script in an icon-based format, with each step represented by a different icon. Within the
Tree view, we can manipulate steps by dragging them to the desired location. We can also add additional steps between existing steps in the tree hierarchy.
<<<<<< =================== >>>>>>
Q. 12: What are the snapshots as displayed by the VuGen?
A snapshot is a graphical representation of the current step.
When working in Tree view, VuGen displays the snapshot of the selected step in the right pane. The snapshot shows the client window after the step was executed.
VuGen captures a base snapshot during recording and another one during replay. We can compare the Record and Replay snapshots to determine the dynamic values that need to be correlated in order to run the script.
<<<<<< =================== >>>>>>
Q. 13: How and when we examine multiple snapshots for a single step?
In many protocols like Microsoft Remote Desktop Protocol (RDP), we can view multiple snapshots for a single step.
This occurs when a mismatch occurs during replay and we decide to append the new image to the step.
<<<<<< =================== >>>>>>
Q. 14: What is the format of Snapshot Files & where these are stored?
Every time we replay the script, VuGen saves the snapshot files in the script directory with an .inf extension.
The replay snapshots are located in the script�s result directory like Iteration1, Iteration2 etc. for every set of results.
<<<<<< =================== >>>>>>
Q. 15: How many tabs are available In the Snapshot window for Web Vusers?
In the Snapshot window for Web Vusers, following tabs are available:
1) Page View: Display the snapshot in HTML as it would appear in a browser. This button is available for both the recording and replay snapshots. This viewis used to make sure that we are viewing the correct snapshot. In this view we do not see the values which need to be correlated.
2) Server Response: Displays the server response HTML code of the snapshot. This button is available for both the recorded and replayed snapshots. The HTML view also shows a tree hierarchy of the script in the left pane, with a
breakdown of the document�s components like: Header and Body with the title, links & forms etc.
3) Client Request: Displays the client request HTML code of the snapshot. This button is available for both the recorded and replayed snapshots. The HTML view also shows a tree hierarchy of the script in the left pane, with a breakdown of the document�s components like: Header and Body and their subcomponents.
<<<<<< =================== >>>>>>
Q. 16: What are Vuser functions created by VuGen?
When we record a Vuser script, VuGen generates Vuser functions and inserts them into the script.
Vuser functions are of following two types:
1) General Vuser Functions: This is also known as LR functions because each LR function has an lr prefix. The LR functions can be used in any type of Vuser script.
2) Protocol-Specific Vuser Functions: These are particular to the type of Vuser that we are recording. For example, VuGen inserts LRD functions into a database script, LRT functions into a Tuxedo script, and LRS functions into a
Windows Sockets script.
The general Vuser functions and the protocol-specific functions together form the LoadRunner API. This API enables Vusers to communicate directly with a server.
<<<<<< =================== >>>>>>
Q. 17: What is the purpose of Gneral Vuser functions or LR Functions?
General Vuser functions or LR Functions enable us to do the following:
1) Getting run-time information about a Vuser, its Vuser Group, and its host.
2) Adding transactions and synchronization points to a Vuser script. For example, the lr_start_transaction (lr.start_transaction in Java) function indicates the beginning of a transaction, and the lr_end_transaction (lr.end_transaction in Java) function indicates the end of a transaction.
3) Sending messages to the output, indicating an error or a warning.
<<<<<< =================== >>>>>>
Q. 18: What is Word Completion feature in VuGen?
Word Completion feature is a part of the IntelliSense enhancements in VuGen.
When the we begin typing a function, after we type the first underscore, VuGen opens a list box displaying all available matches to the function prefix, along with the function�s syntax and description. To use one of the displayed functions, select it, or scroll to the desired item and then select it. VuGen inserts the function at the location of the cursor. To close the list box, press the Esc key.
By default, VuGen uses word completion feature globally. But we can manually disable the word completion feature.
<<<<<< =================== >>>>>>
Q. 19: What is Show Function Syntax feature in VuGen?
Show Function Syntax is also a part of the IntelliSense enhancements in VuGen.
When we type the opening parenthesis of a function, VuGen shows the syntax of the function with its arguments and prototypes and a brief description.
By default, Show Function Syntax is enabled globally, but it can be disabled manually.
<<<<<< =================== >>>>>>
Q. 20: What is purpose of Header Files?
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.
Header Files contain detailed syntax information and return values. Header Files also contain definitions of constants, availability, and other advanced information which is not included in the Function Reference.
In most of the 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.
Continue to Next Part : Q 21 to 30
An expert on R&D, Online Training and Publishing. He is M.Tech. (Honours) and is a part of the STG team since inception.