Wednesday 27 November 2013

How to record script in Loadrunner VUGen using Firefox

As we see LoadRunner gives choice to record script for two type of applications:
1. Internet Application (Using IE browser)
2. Win 32 Application

So, what if you want to record script using Firefox. There is way to do it LoadRunner

Steps to create VUGen script using Firefox:

1. Click on New
2. Select suitable protocol
3. Choose “Win 32 Application” in window





4. Give the path Firefox IN “Program to record” field,go to C drive-Program files-Mozilla Firefox and select Mozilla.exe
5. Give application URL in “URL Address”
6. Click on “Ok”

Your application will launch using Firefox and ready to record.

How to keep Remote desktop active for Long Duration

While doing testing/monitoring the server, it is common now days to use access server machine using remote desktop (one of best feature I must say). Even while doing manual testing using remote desktop is common these days. Now some time your remote desktop session get expire soon and monitoring get interrupt for tester.

Before, I share that how we can increase session time of remote desktop service. Let me share a basic idea of remote desktop.

Remote desktop service is technique of feature which enables any system user to access other machine of network using proper authentication without reaching out to the system physically.

Many of you of course already know it. Remote desktop is also known as “Terminal Services”.

Terminal service is windows component which can be installed using “Turn on or off windows components” from control panel.

Using “mstsc” cmd command you can open RD (remote desktop) and enter computer information with authentication information and you can easily connect to another system.

To keep remote desktop connection active for long duration:

Step 1: Go to “Administrative Tools->Terminal Services”
Step 2: Go to “Configuration”
Step 3: Open the “Connection” folder using tree view
Step 4: Select “RDP-TCP” and right click on it
Step 5: Select “Properties”
Step 6: Go To “Session” Tab
Step 7: Make sure that “Override user settings” check box is selected
Step 8: Set “idle session time” as max (2 days) from default value (2 hours)
Step 9: Click on “Apply”
Step 10: Click on “Ok” and a confirmation message will appear then click “Ok” to confirm changes of time.

Please note that connection of RDP which are already established before changing above setting will be not impacted by this.

Protocol Adviser in Load Runner

VuGen is one of the components of LoadRunner. It stands for Virtual User Generator. This component is used for creating, modifying and debugging the script. User can script using component in TSL scripting language. Load runner provides various predefined functions which can use to create script.
There are various which can be used which creating script. The first step which required creating a script for any application in VuGen is Protocol information.

Protocol: A means of communication in application. A set of rules followed by application for communication.


Depending on protocol information, you can decide that LoadRunner is suitable tool or not for you application. LoadRunner supports various types of protocols.

Microsoft .NET Protocol
Java Protocol
Java Protocol - Manually Programming Scripts
Enterprise Java Beans (EJB) Protocol
Flex Protocol
AJAX Protocol
AMF Protocol
Citrix Protocol
RDP Protocol
Click and Script Protocols
Web Protocols
Oracle NCA Protocol
SAP Protocols
Java over HTTP Protocol
RTE Protocol
Windows Sockets Protocol
Mailing Service Protocols
Tuxedo Protocols
Siebel Web Protocol
COM Protocol
Database Protocols
LDAP Protocol
Wireless Protocols
SilverLight Protocol
Web Services - Adding Script Content
Web Services - Managing Services
Web Services - Security
Web Services - Preparing Scripts for Replay
Web Services - Service Emulation

If you application is using any of above mentioned protocol then you can use load runner tool for performance testing.
In case u don’t about the protocol used by application there is one feature in VuGen which can help out to find it.

Protocol Adviser is one feature which help us to find most appropriate protocol used in application. It will display a list of protocols detected in your application.

How to use Protocol Adviser:

Step 1:
Navigate to “File > Protocol Advisor > Analyze Application



Application type: where you can choose that your application is win32 or MS internet explorer one

Step 2: Click on “OK” and it start analyze your application. It will also display a small popup which will provide option stop analysis process
Step 3: Click on “Stop”

Step 4: It will give you the result of analysis and display a protocol or a list of protocols which you can use to create your script.

In case of multiple protocols detection, it also suggest you about combinations of protocol which can be used in “Multiple protocols: mode,

“This script was generated with an outdated DFE engine” in load runner

Fatal Error -26000: This script was generated with an outdated DFE engine, regenerate the script in order to successfully replay the DFE steps.

Warning: Extension lrwreplaymain.dll reports error -1 on call to function ExtPerProcessInitialize

Error: Thread Context: Call to service of the driver failed, reason – thread context wasn’t initialized on this thread.


This error occurs because the script is being replayed with a version of the DFE engine newer than the one it was generated by. It usually happens if new patches are installed after the script was recorded.

There are 2 possible workarounds for this issue

Method 1:

Do the following 3 steps to fix the issue:

1. Navigate to the script folder
2. Delete the folder named DfeConfig
3. Regenerate the script in VuGen.

Method 2:

1. Open script folder
2. Delete DfeConfig folder
3. Replay script



any method works perfectly.