SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Correlation count

    1. What version of LoadRunner (LR) or PerformanceCenter (PC) are you using? (specify which tool LR or PC)
    (LR_8.1)

    2. What is the protocol you are recording?
    (Click and Script protocol, GUI)

    2.1 If .NET, which version of .NET does the app require?
    N/A

    2.2 If .NET, which version of .NET do you have installed?
    N/A
    3. If HTML - are you using HTML-Advanced with URLs or,
    NO

    4. If URL mode:
    - Concurrent groups, or
    - Without Concurrent groups?
    (indicate which)

    5. Which LoadRunner/PerformanceCenter feature (FPs) or service packs are you using?
    (FP4)

    6. VuGen Recording - are you using Old or New Recording Engine?
    (New)

    7. What kind of LoadRunner license do you have -
    - Subscription,

    (choose the one that fits your license model - (substitute your answer here))

    8. If subscription, is subscription current or expired?
    (Current)

    9. What platform(s) (PCs) and Operating Systems (Windows-XP, etc.)? Include version and service packs (SP1 or 2, etc.)
    (Window 2003)

    10. If you have filed a service request with HP/Mercury, what have they told you at this point with respect to your issue?

    I donít think I need to do this for this problem
    ************************************************** ********

    When we do Correlation, with the parameter being "A"

    In the logs, it usually goes like this,

    A_1 = whatever
    A_2 = whatveer etc.....until the last line

    A_count = value. lets assume the value is 20.

    I will like to know how to bring the total count value to my vugen script and then manipulate it in my code.. I have tried all kinds of combinations but no success so far.

    for example, "{A}" can easily replace the content of that parameter but not sure what to use to replace "A_count" with..

  2. #2
    Moderator
    Join Date
    Aug 2001
    Location
    NC
    Posts
    6,018
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Correlation count

    <font class="small">Code:</font><hr /><pre>
    int mylooplimit,mycounter;

    ...

    mylooplimit = atoi(lr_eval_string("{A_count}"));

    // by converting once we avoid the cost of conversion
    // with each loop evaluation if we had placed this as
    // mycounter &lt;= atoi(lr_eval_string("(A_count")); in the
    // script below.

    for (
    mycounter=1;
    mycounter &lt;= mylooplimit;
    mycounter++)
    {

    // do something really cool with each element in the list

    }
    ...
    </pre><hr />
    James Pulley

    Replace ineffective offshore contracts, LoadRunnerByTheHour. Starting @ $19.95/hr USD.

    Put us to the test, skilled expertise is less expensive than you might imagine.

    Twitter: @LoadRunnerBTH @PerfBytes

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:41 AM.

Copyright BetaSoft Inc.