SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2008
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    correlation issue in load runner

    Hi All,

    I 'm facing problem in the right boundary. The below is the respone which I need to capture PID value

    Response :

    id": "PID454","style": "link","caption": "SEG-00009". In this string I need to capture "PID454". Below is the function which I ve used to capture. And the value -0009 is a parameter value.


    web_reg_save_param("cPID","LB=id\"\: \"","RB=\"\,\"style\"\: \"link\"\,\"caption\"\: \"SEG{y}\"",LAST);. Here {y} is the parameter value which is -0009.

    or

    web_reg_save_param("cPID","LB=id\"\: \"","RB=\"\,\"style\"\: \"link\"\,\"caption\"\: \"SEGlr_eval_string("{y}")\"",LAST); when I use this statement is it giving compilation errors.

    Thank you for your replies.

  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
    What about just capturing the number following the "PID" label? Assuming "PID" is consistent, then

    LB=PID
    RB=\",

    Thoughts?

  3. #3
    Moderator
    Join Date
    Feb 2010
    Location
    Europe
    Posts
    944
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    I agree with James, unless you need to capture specifically for a value of y

    in which case you need think about what you are doing a little more - and maybe get some mentoring

    the call should look like this:

    web_reg_save_param("cPID",
    "LB=id\"\: \"",
    lr_eval_string("RB=\"\,\"style\"\: \"link\"\,\"caption\"\: \"SEG"{y}"\""),
    LAST);

 

 

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 05:44 AM.

Copyright BetaSoft Inc.