Recording Options – for web Vusers

Before recording a Web session, you can customize the recording options. 
This section includes a screenshot of the recording options available (LoadRunner 9.5 version)


First to start with
General Options

Under this you have three subsections 1. Script                     2. Protocols                 3. Recording

1. Script:  Here, you can specify a language for script generation with respect to the selected protocol for recording (Example: Web (HTML/ HTTP), Web (Click and Script) etc).

Script can be generated in any of the following programming languages

C, C#, Visual Basic, Visual Basic .NET, VB Script, and Javascript.
After selecting the language for recording you can select/ check particular recording options available. Forl Example, below screenshot elaborates the Scripting Options available for C Language

After recording you can use C Language pre-defined functions and control/ conditional statements to enhance the script as per the business requirement.

2. Protocols subsection lists the protocol(s) selected for recording.
Below screen shot refers to recording of Web (HTTP/ HTML) Protocol


3. Recording

Recording subsection lets you specify recording level that specifies what information and which function to generate while recording a Vuser script
The available levels are GUI-based script, HTML-based script, and URL-based script.

Note: GUI-based script is not available for web (HTTP/HTTP) protocol


HTML-based script, generates web functions for each user actions. The scripts are intuitive but java script emulation is not possible in this mode.
It is the default recording level for Web (HTTP/HTML) Vusers and it instructs VuGen to record HTML actions in the context of the current Web page. It does not record all resources during the recording session, but downloads them during replay (thus preferred recording level for HTML based scripts because of less correlation challenges comparatively).

Setting Advanced HTML-Based Options allows you to Specifying Script Types and Handling Non HTML-Generated Elements
For HTML-based scripts, you can specify the type of script:
·         A script describing user actions
·         A script containing explicit URLs only

A script describing user actions, is the default option and it generates functions that corresponds to Vuser’s action taken while recording.
For Example: When a Vuser clicks on a hyperlink then web_link is created. Similarly for submission of a form, a subsequent web_submit_form is created.

Unlike, a script containing explicit URLs only, where all the Vuser actions are recorded as web_url statements and web_submit_data (in the case of forms).
This option is quite useful when AUT (Application Under Test) has many hyperlinks, images, text fields etc in it’s webpage) and it’s used most of the times.

Handling Non HTML-Generated Elements
The following options are available:
·         Record within the current script step (default):
It is indicated with ‘EXTRARES’ flag. All resources are listed within web function as individual step itself under the EXTRARES.
·         Record in separate steps using concurrent groups
It enables VuGen to create a separate web function for each non-HTML elements and they are surrounded by web_concurrent_start ( ) and web_concurrent_end () functions.
·         Do not record
When you select this option, VuGen does not to record any of the resources generated by non-HTML elements.

URL-based script, generates web functions for each object on the web page. It automatically records every HTTP resource as URL steps (web_urlstatements of LoadRunner’s API). Thus the script will be lengthy (comparatively more number of LR functions are generated during recording because every object is recorded as corresponding web_url step in the Vuser script) and it is more prone to correlation too.
VuGen lets you set advanced options for the URL recording mode in the following area:
·         Resource Handling
Create concurrent groups for resources after their source HTML page option is enabled by default. Enabling this option allows VuGen to record URLs and its resources with concurrent groups.
·         Generating Custom HTTP Requests
By enabling this option you instruct VuGen to record all the resources (HTML and non-HTML), regardless of their content, as a separate web_custom_request statement.

HTTP Properties of Recording Options

HTTP Properties has two subsections:-
1. Advanced                           2. Correlation

Screenshot for reference

(i)   Under HTTP Properties > Advanced option, you can check/enable following preferences
·         Reset context for each action,
·         Save snapshot resources locally,
·         Generate web_reg_find function for page titles and its sub frames,
·         Add comment to script for HTTP errors while recording and Support charset

(ii)    It also allows you to Record script using earlier recording engine

(iii)   Moreover, it allows you to select Recording Schemes

No comments:

Post a Comment