Beaten by the correlation exercise.Correlation is one of the fundamental LoadRunner scripting skills; and LoadRunner novices are usually not very good at it (which is expected), but people who think they are LoadRunner experts are sometimes not very good at it either.

Mercury has done just about everything it can to remove the need for complicated correlation (correlation rules, the “scan script for correlations” option in VuGen, HTML mode recording, the Click and Script vuser type), but there will always be web applications that will require you to perform manual correlation when scripting.

Mercury’s training material kind of glosses over correlation, and makes it look overly easy – the correlation exercise from the training material never gives any of my students any problems; but if the training material were to include difficult exercises, it would be necessary to spend another day, and more people would be unable to complete the exercises.

I usually tell my students that they will encounter some much more difficult to correlate applications than the Mercury Tours website, and they will need to spend some time improving their manual correlation skills using WDiff .

This exercise should really test your correlation skills. Every problem (or something very similar) has been seen “in the wild” while I have been creating scripts for LoadRunner.

The Correlation exercise is available here.

Also, you should have a go at the previous scripting exercises:

 

Published On: May 14, 2007Tags: ,

7 Comments

  1. malini June 22, 2007 at 1:08 am

    challenge still in the workshop?

  2. ashish April 6, 2009 at 11:32 pm

    After recording my script on application, it is capturing one dynamic value, but when i go to correlate this value i get unluck. But it is showing me the transaction is “Pass”. Actually the value is application generated and in the hidden field of database, everytime when a new thing has to be enter it provide a dynamic no. that is in sequence, in my script what i captured, the other part is using that application generated value. So i manually correlate this as the automatic corellation was not detecting it.
    Please help.

  3. Usha Ravi March 24, 2010 at 1:29 am

    Where is the challenge? 🙂

  4. sonia April 7, 2012 at 12:47 am

    Hi,

    I am recording “Yahoo finance” page with web(HTML/HTTP) protocol. I have to fetch ‘last trade’ and the ‘Headlines’ for few comapnies.
    1) for ‘Last Tade’ I correlated data and got the value.
    2) But for ‘Headlined’ , as I have to extract all the headlines from the page so I am not sure If I have to use correlation or something else.
    I have checked server response as well, but the LR and RB boundaries are dynamic so I cant even capture using correlation.
    Please suggest me how to do that.

  5. SaiHari September 19, 2012 at 8:06 pm

    Hi,

    I am facing an issue with correlation in LR11.04 as I am using SAP-Web protocol for an application developed in ‘SAP WebDynpro’. Please help as the queries mentioned below.

    1. Do I need to correlate ‘SAPEventQueue’?
    2. How can I handle Jsession IDs (I found the boundaries in the treeview but unable to identify the dynamic values during replay)

    Thanks,
    SaiHari

  6. Chelladurai K July 16, 2015 at 8:02 pm

    Hi,

    I am facing an issue to correlate set of values, The set of values below,

    {‘option’:123′,’n’:’Jhon’,’tr’:’ae’,’tp’:’576′,’emt’:1},
    {‘option’:1234′,’n’:’Raj’,’tr’:’ae’,’tp’:’576′,’emt’:1}

    from the above i have to capture Jhon and Raj but when correlating i have one more dynamic value as 123 and 1234. Those are dynamic and no of digits also different. One is 3 digit and one is four digit. Do we have any ways to correlate this kind of formats?

    please help me in this case if you can.

    Thanks,
    Chelladurai.

Comments are closed.