Saturday, October 11, 2008

Loadrunner Correlation Part –2: how to do find unique/sessionId


What is Windiff tool?How to use Windiff tool?


Hi, Today i am going to explain how to do find unique/session value using Windiff tool in Loadrunner.

We can find out unique/session value using Wdiff tool in VUGen.

To use Wdiff tool we need to record the same script twice. Then, the values that should be correlated can be determined by using Win diff.

Note: Additional software which helps comparing two recorded scripts is “WinMerge” 


It can be downloaded for free from http://winmerge.org/downloads/index.php

Steps to perform Wdiff process:

1.Record two copies of the script with the same busines process and  data:       

   a. Record a script on the desired business process and save it.

   b.Record another copy of the script, repeating all the steps as in step 1a. As much as possible, during recording, enter the same values in both scripts, for example, user ID, password, and fields and edit selections.  

2.Identify the values to correlate with the help of the WinDiff tool

a.From the second script, go to Tools ® Compare with Vuser, and choose the first recorded script. 

b.WinDiff will open and display the two scripts side by side.  It will automatically highlight the lines with differences in them, showing the differences in red. (If not, go to Options ® View ® Show inline differences.)

c.Locate the first difference, take note of it, and search the script open in VuGen for that difference.  That is the original value hard-coded into the script that was different in the second script.  Highlight it and copy it.



Some times we will get the following problem.
It happens if your script directory contains spaces or special characters.


Other wise we can get windiff window.using this difference window we can get two script diffrencess.

                                     (For lagrge image... click on the image)

Note: Differences like "lr_think_time" can be ignored.  They are pacing functions, and do not represent data sent to the server.

We can get the unique/session value in win diff window.

we will learn how to do manual correlation using found session/unique value.  :)

 

No comments:

Performance Testing News:

Loadrunner v12:
- Targeting an April 2012 Development release. Not sure when it will be available for public.
- Customers can participate in the beta program after legal procedures are completed.
- Availability of LR Mobile protocol. Performance testing for mobile (both web browser based as well as native mobile device) – Supports HP Palm Pre, iPhone (3GS, 4), Android, Blackberry phones and many other actual mobile devices.
- Support for Windows7, TruClient IE9.
- VUGen will be completely redesigned and new IDE (called Sharp Develop) will be built.

Performance Testing,Monitoing & Analysis Useful Documents

Download Performance Testing,Monitoing & Analysis Useful Documents


Loadrunner

Design scenario - Download

Record & Replay Issues with VUGen - Download

LR8.1 Protocol Footprint - Download

Monitoring & Analysis

HP Performance monitoring best practice - Download

Others

Load test plan - Download