Saturday, 16 June 2012

Step Download Timeout

Step Download Timeout means that the step needed to performed for the subsequent step to be performed have reached its timeout limit (default is 120 secs) in LoadRunner.
Having mentioned the above, there are situations we must take note when this error occur. If the error occurs during the generation of the script (replay in Vugen), it could mean that the application is really taking time of more than 120 secs to complete the download of the resources. You may want to configure the timing to suit your application needs.

If the error occurs during a scenario execution and happens in the middle of the scenario (usually with a large amount of load), the application is handling alot of load and unable to attend to all the vuser request, thus (maybe) taking more than the configured download timing. For this, it will be better advisable to look at the system utilization of the servers to seeth out any performance problems.

To determine the initial problem, we can ask the following questions.

1. Does the error occur in Vugen?
2. Does the error occur in Controller?
3. If yes for (2), does it occur in the start of the scenario run or in the middle of the
scenario run?
4. If yes for (2), what is the amount of running users when the error occur?

The above, can scope down to the area of problem and allow you to determine your next course of action.

If you have decided that the Step Download Time needs to be configured, you can configure that in the Runtime Settings of the script.
 
Final note, its best to determine the characteristics of your application before applying the configuration. (Do not configure to suit the load test but rather let the load test determine the configuration)

Script working fine in Vugen but get failed in Controller for more than 1 user

Problem:
Script working fine in vugen for 1 user and multiple iteration but it get failed for more than 1 user in Controller.

Solution:
1. Check the web_url for which it get failed  user. and try to record with other option like explicit_url and then run through controller. You may get succeed.

Wednesday, 13 June 2012

How to download LoadRunner tool through HP site

This article is about to download LoadRunner11.0 from HP site when you have proper SAID

To download the installation you go to the following link:
http://support.openview.hp.com/ (make sure u are logged in)
1.       After you load the link go to >>Downloads
2.       >>Software updates window button
3.       My Updates
4.       To make sure you see the same options like me we will go the other way around and enter your SAID directly
5.       Fill the checkbox where you accept the terms and conditions
6.       Click View Available Products >>
7.       Under Performance Center you can find HP LoadRunner 11.00 Eng SW E-Media check the box and click the Get Software button on the bottom of the page.
8.       Now you should see it on top of the table so under Deliverables click again Get Software.
9.       Now you can see in the second window one .zip and one .z01 of LoadRunner.
1.     Pick one of them and Download it (Directly or via HP Download Manager)

Tuesday, 12 June 2012

Load Runner with VMWare

HP recommendation about LoadRunner on VMWare

LoadRunner 11 supports VMware ESX 4.0 on Windows XP, 2003 and Vista.
It is not recommended to run Load Generator for load testing purposes on Virtual Environment, however it shouldn’t be a problem.
Don’t need to install any patches to be able to run it on VM but always recommend installing the latest patches (currently patch 4).

Monday, 4 June 2012

How to raise a Case to HP

Steps to add SAID(Support Agreement ID):

2.       Enter your HP Passport username and password (if you don’t have one, Kindly register a new user)
3.       Add this SAIDs “10123456740” at bottom of the page.

Once you have added the contract to your profile, you can open a support case. Kindly follow these steps to open a support case:
2.       Click “Submit a new case” on the left.
3.       Select “Quality Center” for Product field.
4.       Select the Product version, Sub-product, Operating System, SAID, Severity
5.       Click “Next”
6.       Enter Case title and Case details
7.       Click “Next”
8.       Click “Submit Case”


How to download Software from HP Site:



Sunday, 3 June 2012

How Unique with Each iteration and Abort Vusers works in Parameter file


When a File parameter is unique, LoadRunner will divide the data evenly into blocks and assign each block to a virtual user when it starts running. Each vuser will use the data in their assigned block sequentially.

This means that the used values aren’t all at the start of the file; they appear in chunks, spread evenly throughout the file (unless your scenario has a single virtual user).

Size of block depends on the "Automatically allocate block size" and "Allocate ____values for each Vusers."If we select first "Automatically allocate block size" it allocates data in 1 block= no of iterations.

Example:
Itreation=1
User=3
Data: 1,2,3,.......20 =total 20

Then 20/3=6.66. Then Data will divide in block of 6 and last 2 data will not assign to any user.

 1 user: 1,2...6
 2 user= 7,8.....12,
 3 user= 13,14....18.

19 and 20 will not pickup by any user.

Note: Above divide is applicable only there is some run duration. If run duration is " Run until completetion" then data divide is not applicable.


Unique/Once: Each vuser will use the data in sequentially. This means that the used values are all at the start of the file. No matter if run duration is "Run until completetion" OR have some duration.

Example:
User=3
Data: 1,2,3,.......20 =total 20

 1 user: 1,
 2 user= 2
 3 user= 3

User=3
iteration=2
Data: 1,2,3,.......20 =total 20

 1 user: 1,1
 2 user= 2,2
 3 user= 3,3

Saturday, 2 June 2012

Can QTP and LR be installed on the same machine

Can QTP and LR be installed on the same machine

QTP and LR share some files. Therefore, if QTP is installed and then LR is installed, this will cause problems. QTP and LR can be installed on the same machine, but special attention has to be given to the install squence.

LR needs to be installed first, then QTP can be installed.

If you plan to execute QTP scripts, QTP should be installed on Load Generator computer.

One QTP script be executed on one computer?
How does QTP work? It takes full control on GUI desktop of computer. Each computer has one desktop only.
That's why there is a limitation: you can run one QTP script per computer!

To run QTP script from LoadRunner you have to have "GUI" Vuser LoadRunner license.

The steps are:
  1. Record and save QTP script.
  2. Start LoadRunner Controller.
    Note, that QTP scripts can be executed in LoadRunner Controller. You cannot use LoadRunner Generator to run or debug QTP script.
  3. Select 'New Scenario...'.
    'New Scenario' dlg will be opened. Do not forget to select 'Quick Test Tests' from combobox:
  4. Open QTP script.
    Note, that 'Quantity' field will contain value '1', i.e. one user will be run:
    That's funny, LoadRunner set correct 'Quantity' value in Scenario Groups settings, but it forgot to set correct values in Scenario Schedule section:
    It seems like a small bug :)
  5. Execute scenario.
    You will find that your QTP script works - it will be starting a browser, performing search, clicking 'Next' btn and closing browser during 5 minutes (default time from Global Schedule settings)

    Congratulation! QTP script runs from LoadRunner.



 
How to execute QTP script from LoadRunner?

How to Change Password of IUSR_METRO Account

Sometime we need to change the password of IUSR_METRO Account. This may be required due to compliance issue. Below are the steps to chang...