Skip to main content


Showing posts from July, 2013

lr_abort Function Example Loadrunner

lr_abort function stops the execution of the script and executes the vuser_end action in loadrunner. We use error handling as shown in the following example to stop the script in vugen or controller.
lr_abort Example:
lr_start_transaction("Google Page");
if (atoi(lr_eval_string("{Google_Count}")) > 0)
lr_end_transaction("Google Page", LR_PASS);
lr_end_transaction("Google Page", LR_FAIL);

What's New in LoadRunner Service Pack 11.52

The following sections describe the latest enhancements.

Improved Performance in VuGen

There are performance improvements in the following areas of VuGen:
Opening, removing, closing, and working with multiple scriptsReplaying scriptsWorking with ALM: uploading, compiling, and replaying scripts.Using the Step NavigatorWeb snapshotsOpening VuGenImproved Performance in Analysis

There are performance improvements in the following areas of Analysis:
Loading test results when an SQLite database is selectedGenerating rich reports (in particular, reports for large results of over 1000 transactions)Statistic calculation in Analysis APIsStarting AnalysisShunra™ Network Virtualization Enhancements

The latest Shunra network virtualization offers the following enhancements:
Improved integration with Shunra Network Virtualization, enabling you to perform network virtualization per Vuser group, and to define multiple locations per load generator.New Monitoring and Analysis network virtualization graphs…

List of HP Loadrunner Versions

Loadrunner 12.00(Coming Soon)Loadrunner 11.52 (Current Version)Loadrunner 11.51Loadrunner 11.5Loadrunner 11.04Loadrunner 11.03Loadrunner 11.02Loadrunner 11.01Loadrunner 10Loadrunner 9.0Loadrunner 9.10Loadrunner 9.50Loadrunner 9.51Loadrunner 9.52Loadrunner 8.0Loadrunner 8.12Loadrunner 8.13Loadrunner 8.14Loadrunner 7.0Loadrunner 7.02Loadrunner 7.5Loadrunner 7.51Loadrunner 7.6Loadrunner 6.xLoadrunner 6.10Loadrunner 5.xLoadrunner 4.x

How to Create a Empty Script and Record in Loadrunner 11.5

In this tutorial, I will show you how to record an application in Loadrunner with Web(HTTP/HTML) Protocol.

To develop a script in Loadrunner 11.5, First Open the Vugen.

To create a blank Vuser script please follow the below instructions

Click Start -> All Programs->HP Software->HP LoadRunner-> Virtual User Generator or double-click the Virtual User Generator shortcut icon on your desktop. The HP Virtual User Generator [VuGen] opens.

Click File -> New Script and Solution or click the Add New Script button on the VuGen toolbar. Create a New Script dialog box opens.

Make sure the Category is Single Protocol. VuGen displays a list of the protocols that are available for a single-protocol script.

From the list of available protocols, select Web - HTTP/HTML and then click Create. VuGen creates a blank Vuser script and displays the script in the VuGen Editor.

Prerequisite Needed for HP Loadrunner 11.5 Software

The following prerequisite needed for HP Loadrunner 11.5 software:
Microsoft Windows Installer 3.1Windows Imaging Component. This is a prerequisite for .NET Framework 4.0..NET Framework 3.5 SP1 (See the note below for installation instructions.).NET Framework 4.0Web Services Enhancements (WSE) 2.0 SP3 for Microsoft .NETRedistributable Runtime MSIWeb Services Enhancements (WSE) 3.0 for Microsoft .NET RedistributableRuntime MSIMicrosoft Core XML Services (MSXML) 6.0Microsoft Visual C++ 2005 SP1 Redistributable Package MFC Security Update (x86)Microsoft Visual C++ 2005 SP1 Redistributable Package MFC Security Update (x64)Microsoft Visual C++ 2008 SP1 Redistributable Package MFC Security Update (x86)Microsoft Visual C++ 2008 SP1 Redistributable Package MFC Security Update (x64)Microsoft Visual C++ 2010 SP1 Redistributable Package MFC Security Update (x86)Microsoft Data Access Components (MDAC) 2.8 SP1 (or later)Note:
Windows 7: .NET 3.5.1 is installed by default.
Windows 2008 R2: To insta…

Flex Functions in Loadrunner

Flex Functions in Loadrunner Download

Function Name Descriptionflex_login Logs on to a password-protected Flex application.flex_logout Logs off of a password-protected Flex application.flex_ping Checks if a Flex application is available.flex_remoting_call Invokes one or more methods of server-side Remote objects (RPC).flex_web_request Allows you to create a custom HTTP request with any method supported by HTTP.flex_rtmp_connect Connects a client to an RTMP server and sets connection options.flex_rtmp_disconnect Disconnects a client from an RTMP server.flex_rtmp_send Sends messages to an RTMP server.flex_rtmp_receive Receives responses from an RTMP server.flex_rtmp_receive_stream Receives streaming data from an RTMP server.flex_amf_call Sends a Flex AMF request.flex_amf_define_envelope_header_set Defines a set of Flex AMF envelope headers.flex_amf_define_header_set Defines a set of Flex AMF headers.

List of Protocols in HP Loadrunner

Ajax ProtocolAjax TruClient ProtocolAMF ProtocolCitrix ProtocolClick and Script ProtocolsCOM ProtocolDatabase ProtocolsEnterprise Java Beans ProtocolFlex protocolJava ProtocolJava Protocol- Manually Programming ScriptsJava Over HTTP ProtocolLDAP ProtocolMailing Service ProtocolOracle NCA ProtocolRDP ProtocolRTE ProtocolSAP ProtocolsSiebel Web ProtocolSilverLight ProtocolTuxedo ProtocolsWeb ProtocolsWeb Services - Adding Script ContentWeb Services - Managing ServicesWeb Services - Preparing Scripts for ReplayWeb Services - SecurityWeb Services - Service EmulationWindows Sockets ProtocolWireless Protocols

Web Functions in Loadrunner with Examples - Web Protocol in Loadrunner

Function Name Descriptionweb_add_auto_filter Sets criteria to include or exclude URLs when downloadingweb_add_auto_header Adds a customized header to all subsequent HTTP requests.web_add_cookie Adds a new cookie or modifies an existing one.web_add_cookie_ex Adds a cookie with specified add behavior.web_add_filter Sets criteria to include or exclude URLs when downloading.web_add_header Adds a customized header to the next HTTP request.web_cache_cleanup Cleans the content of the cache simulator.web_cleanup_auto_headers Removes all previous customized headers from HTTP requests.web_cleanup_cookies Removes all cookies currently stored by the Vuser.web_concurrent_end Marks the end of a concurrent group.web_concurrent_start Marks the beginning of a concurrent group.web_convert_date_param Converts a date string stored in a parameter to a different format.web_convert_from_formatted Converts a string created with one or more data format extensions back to the source format.web_convert_param Co…

LR Functions with Examples | Loadrunner Functions with Examples

LR Functions in Loadrunner with Examples.

lr_abort Stops the script execution.lr_advance_param It will take the next value in the parameter list.lr_continue_on_error Continue on error even if the request is failed.lr_convert_string_encoding Converts a string to a UTF 8 or Unicode.lr_db_dataset_action Validates database contents by setting checkpoints.lr_db_connect Connects to a database.lr_db_dataset_action Performs an action on a dataset.lr_db_disconnect Disconnects from a database.lr_db_executeSQLStatement Submits an SQL statement to a database.lr_checkpoint Validates the value of a parameter against an expected value (checkpoint).lr_db_getValue Retrieves a value from a dataset.lr_debug_message Sends a debug message to the LoadRunner output or Application Management agent log file.lr_decrypt Decrypts an encoded string.lr_disable_ip_spoofing Disables IP Spoofing.lr_enable_ip_spoofing Enables IP Spoofing.lr_end_sub_transaction Marks the end of a sub-transaction.lr_end_transaction Mark…