SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2007
    Location
    USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    how to do times/divide function in LR

    1. What version of LoadRunner (LR) or PerformanceCenter (PC) are you using? (specify which LR or PC)
    LR 8.1
    2. What is the protocol you are recording?
    2.1 If HTML - are you using HTML-Advanced with URLs or,
    HTML-Advanced with URLs
    2.2 URL mode with Concurrent groups, or
    2.3 URL mode without Concurrent groups?
    3. Which LoadRunner/PerformanceCenter feature or service packs are you using?
    All
    4. What kind of LoadRunner license do you have - Subscription, Perpetual, Virtual User days, or Evaluation? (choose the one that fits your license model)
    Permanent
    4.1 If subscription, is subscription current or expired?
    5. What platform(s) and Operating Systems? Include version and service packs.
    Winxp Pro
    6. If you have filed a service request with Mercury, what have they told you at this point with respect to your issue?
    Not yet


    Don't laugh at me if this question is too naive, but I tried a long time without succeed.

    I captured a dynamic value, say {AmountTotal}, I would like to have this value divided by 4. And use this value to fill out a form. Say current {Amounttotal} is 25, if I just put {AmountTotal}/4 or {AmountTotal}*0.25 something, it will give me 25/4 or 25*0.25, not the value 6.25 I want. Any idea how to handle this?

    there is no valid math function in LR let me do it.

  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: how to do times/divide function in LR

    Rely upon your "C" foundation knowledge to help you here.

    Leading questions:
    <ul type="square">[*]What format is a LoadRunner variable?[*]What format does the output need to be in for math operations to be conducted?[*]How would you convert from the default LoadRunner variable format to the C variable format that you need for your math operations?[/list]

    Answer the questions and you should have your path...
    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

  3. #3
    Advanced Member
    Join Date
    Jun 2006
    Location
    USA
    Posts
    785
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to do times/divide function in LR

    wilsonmar.com has some examples of doing math exercises.

    http://www.wilsonmar.com/1lrscript.htm

    Search for "Arithmetic with Parameters is convoluted" and enjoy!!

 

 

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 10.71%
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 11:43 PM.

Copyright BetaSoft Inc.