Thursday, December 12, 2013

How to use the correlation studio after creating correlation file in Load runner?

To use correlation Studio go to Vugen-Tools-Recording Options-Http properties-Correlation then click on Import button as shown in below image.


And import the saved *.cor file (In our case it is sample.cor)



Click on Open button, Start recording your script and you will notice all predefined patterns are correlated automatically according to that .cor file

“communication between vugen and the truclient browser could not be established” Issue in AJAX True Client protocol

Some time while clicking the ‘Develop Script’ button we may get the following error
"Communication between VuGen and the TruClient browser could not be established. This error occured because you do not have proper permissions". 

Solution is

  • Run VuGen as a administrator. Right click on VuGen icon-> Run as administrator.
  • Check installation requirements for LoadRunner regarding versions of browsers, etc... along with the expressed access rights required on your PC. A solid 90%++ of recording issues are resolved by examination of the installation requirements and reconciling your installation settings to the items noted as requirements for the installation and use of the software.
  • The Firefox version delivered in Load Runner 11.5 is 8.01.Try to uninstall the product, re-install and install also service pack 1 on top of the GA.



Non Functional Requirement (NFR) for performance testing

The most important points to consider when writing an NFR are:

1. Qualified – It should describe in words what is required. This is important, spreadsheets with boxes that have numbers in them are only useful if everyone agrees on the same assumptions – this is rarely the case as a box with 1 second in it can mean a lot of things to a lot of people.

2. Defined – For example, a response can be measured at various points, there are lots of layers that a request can pass through and the very last point in the stack is when it hits the user’s eyeball. It is important to define which layer we are working in. Typically, in load testing you want to remove the client and the network and only focus on server response times (different people have different bandwidths and different PCs so we remove those variables).

3. Quantified – We need actual numbers to work to. The best number to use is the 90th percentile as this prevent the minority skewing the majority.

4. Flexibility – NFRs are not written in stone and can be changed. But we must have a line in the sand to start with. This line can be, and usually is, moved but having it defined prevents either needless tuning or, worse, insufficient tuning.

5. Volumetrics – Now that we know how fast we want the system to respond we have to decide under what conditions we want it to do this. This is known as defining the ‘load’ to be tested to and is most often expressed in terms of business requests per second/minute. For end to end performance testing it should be complete and describe traffic from all sources. For component testing it should set the scope for what is to be tested. If the system is complicated then this data can be defined in a separate document and referenced.

An example:
“As a business owner, I want 85% of Login requests to be served within 650ms, 95% within 850ms and none over 1200ms where a response is defined as a HTTP 200 return code from the server to Apache and does not include any client side or external network (internet) processing. Requests must be made against a fully populated database that is a replica of Production and this level of performance should be maintained for 1 hour without degradation during a simulation of the peak load as defined in the ‘Project Volumetrics’ document which includes 2.6 Login requests per second via 220 concurrent threads.”

"Abnormal termination, caused by mdrv process termination" "Action.c(15): Error: Got unexpected disconnect event, exiting ..." citrix script issue in controller

While working with Multiple users with Multiple scripts in controller machine the users are directly going in to failed state.we will get the following error.we used LR 11.0 and  ICA is  Program Neighborhood( Citix Xen App)

"Abnormal termination, caused by mdrv process termination"
"Action.c(15): Error: Got unexpected disconnect event, exiting ..."


We do not recommend you run Citrix or other GUI VUsers on a controller used as a generator. Do you have a remote generator available you can use? It may work in an emergency or for a small number of vusers.
Please confirm you have Patch 2 applied to all your LR 11 components – as it is required; and please let me know the following:
- Citrix XenApp server version.
- XenApp Client version.
- If you are using the later XenApp client, you will need to run our LR agent as a process (by default it runs as a Windows service). 


Use this url : http://support.openview.hp.com-- because the LR agent is implemented slightly differently on a controller, I am not sure the workaround is applicable; you may try to run the agent process by executing magentproc.exe in LR\launch_service\bin. Again please do use remote generators for Citrix VUsers.

- On the controller (and any generator) we require you have the Citrix Registry Patch applied after you install LR and LR patches, and if your Citrix client is updated/re-installed. You can double-click the registry patch file we include with LR, in the product folder LR\dat 


– it is named Enable_Citrix_API.reg. If this patch is not applied before you record or replay you will have problems.

- are you using the LR Citrix agent on the Citrix server(s) hosting the app – if so, please let me know the agent patch level.


- can you launch multiple instances of the Citrix app from the controller using your ICA file or program neighborhood agent (or Citrix web interface) – outside of VuGen, in the same user console session on the controller?


- Does your Citrix server(s) have the ICA connection settings set to “terminate session” when the session is disconnected? If you don’t have this set, if the sesssion terminates or dies unexpectedly, the second time it is launched/ran, will re-connect to that application in the same state. Setting “terminate session” is needed for load testing and your Citrix admins can help configure it on the Citrix servers.


- If installing the registry patch or running the agent as a process doesn’t’ help, and if you can launch multiple instances of the app from the same client outside of VuGen, please upload to the case:

  • your script, replayed with full extended logging (all three extended log options) – plus “always send messages”.
  • your ICA file used to launch your app
  • all of the info above.