Loadruuner Helpline by Bhupendra Varshney, Loadrunner Help online, Loadrunner issues

Welcome To Loadrunner Helpline By Bhupendra Varshney

Friday, December 21, 2012

VUGen Protocol Analyzer - How to analyse the protocol for recording in Loadrunner

Analyzing protocol for VUGEN recording :

Most often, it is found that tester attempts to record a web application but face some of the obvious challenges. What is the good deal then? Let me explain some of the situation in this context -

Query 1 : Hi, I am new to Loadrunner and want to record a web application but I am not able to record it. The Loadrunner launches the web page but does not record the actions.

Query 2: Hi I have recorded the application using multiple protocols - HTTP and AJAX. But while enhancing the VU Gen script, i am getting some different code snippet against AJAX call used in my web application. Please suggest me how can I overcome the situation.

Here above two queries have been churned out to put across the situation of a beginner and somewhat expert tester. The above two queries need to find out a prominent way of recording a script without any glitch.

Here some blind folded people explain the concept of VUGen Analyzer - "This is the best way to find the protocols." Now there are many cases when you use the VU Gen analyzer and still face the challenges as asked above in Query 2.

Some thumb rules for protocol analysis in VUGEN -

1) Protocol analysis is not a science but an art of understanding the architecture of System Under Test (SUT)
2) Protocol is not about which technology your application is using - For example if your developer has used .NET to develop a web application (aspx pages) does never mean that you will pick .NET protocol for recording a VUGEN script.
3) Most of the web applications work perfectly with HTTP protocol. The only thing you can do is tweak and play your script with some enhancements.
4) AJAX calls can be recorded without even selecting AJAX protocol in VUGen. That's true ! What you need to do is record the application on HTTP protocol and an AJAX transaction will be recorded in custom code. Now that custom code can be used to customize your request.
5) Use .NET protocol when you application type is desktop/windows and is built on C# /VB.NET
6) Use SAP protocol for SAP applications
7) For citrix application use ICA protocol and give proper configuration command while recording the application.

Monday, December 17, 2012

Recording a Loadrunner Script in Virtual User Generator

Recording a Loadrunner Script

Before start recording a loadrunner script, it is vital to have at least below pre-requisites ready -

1) Overview of functionalities of application
2) Business Process ready.
3) Master data generation for playback
4) Analyzing the protocol for your script

I have already covered the above pre-requisites in my previous posts.

I am starting this post with procedure to record a basic HTTP script -

Step 1 -

Click New button OR select File-->New OR simply press ctrl+n keys of your keyboard.
Now you will see the below dialog-




Step 2 -

Since we are recording a web application, so  select Web (HTTP/HTML) protocol. Then you will see the below dialog -




Step 3 -

a) Select Application Type "Internet Application"
b) Program to record "Microsoft Internet Explorer"
c) URL Address "URL of your application"
d) Working Directory "Temporary directory for all LR related tasks"
e) Record into Action "Action" OR click New and then enter any name for e.g. "EnterURL"
     (Please note do not use any special character in giving an action name, also we should give a proper meaningful name to actions.)

Step 4 -


 Click Option button and then select HTML-based script from Recording menu to change the settings of your recording (as given in below image) -



Step 5-


Click HTML Advanced button and make sure to have the following settings and then click OK-