Issue in VUGen Correlation - Not capturing full length of string.

Hey Community !
I want a help regarding a following issue:
I'm trying to correlate a long dynamic string but for some reason it doesn't retrieve the entire string - just a portion of it ( to be precise it is capturing127 characters), I have also check the record settings & already existing prescribed solutions but all in vain.
Pls help out.

Thank You !

  • 0  

    Hi Sarthak,

    Could you, please, provide more details about the correlation case?

    Do you use Web HTTP/HTML or DevWeb protocol and which correlation function you are using?

    There is web_set_max_html_param_len API in Web HTTP/HTML protocol, that limits the size of the string that can be retrieved and saved as a parameter.

    But if the actual string bigger than the limit, nothing will be saved…

    Please, advise.

    Leonid.

    Leonid Pekel
    LoadRunner expert. OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0 in reply to   

    Hi Leonid,

    Thank you for quick response.


    Coming to the specifications I am using HTTP/HTML protocol and the function used is " web_reg_save_param_regexp" and also i tried with " web_reg_save_param_ex" but no success.

    If we talk about web_set_max_html_param_len function, yes I know about this and set a quite large value in the input, so that it can accomodate the long string, also tried by commenting it, but all in vain.

    Thanks

  • 0   in reply to 

    Hi Sarthak.

    Could you, please, provide the function with regular expression and the quote from response with the desired value? 

    I used a testing page with ~64K string as a value of the form hidden field and extracted it using 3 different APIs:

        web_set_max_html_param_len("1024000");

        web_reg_save_param_attrib(
              "ParamName=VIEW_HTML",
              "TagName=input",   // case insensitive for the tag name or attribute name
              "Extract=value",
              "Name=__VIEWSTATE",
              "Type=hidden",
              LAST);
        
        web_reg_save_param_ex(
            "ParamName=VIEW_BOUNDARIES",
            "LB=id=\"__VIEWSTATE\" value=\"",
            "RB=\"",
            SEARCH_FILTERS,
            "Scope=Body",
            LAST);

        web_reg_save_param_regexp(
            "ParamName=VIEW_REGEXP",
            "RegExp=id=\"__VIEWSTATE\"\\ value=\"(.*?)\"\\/>",
            SEARCH_FILTERS,
            "Scope=Body",
            LAST);

    and all of them received the same complete value...

         web_save_param_length("VIEW_HTML", "Base=Decimal", LAST );
         web_save_param_length("VIEW_BOUNDARIES", "Base=Decimal", LAST );     
         web_save_param_length("VIEW_REGEXP", "Base=Decimal", LAST );     

    Notify: Saving Parameter "VIEW_HTML_Length = 65536".
    Notify: Saving Parameter "VIEW_BOUNDARIES_Length = 65536".
    Notify: Saving Parameter "VIEW_REGEXP_Length = 65536".

    Best regards,

    Leonid.

    Leonid Pekel
    LoadRunner expert. OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0 in reply to   

    I have been using this as a function in script

    web_reg_save_param_ex(
        "ParamName=state",
        "LB=state=",
        "RB=%26RedirectTo%",
        "Ordinal=1",
        SEARCH_FILTERS,
        "IgnoreRedirections=No",
        "RequestUrl=*/onactuate-demo.sandbox.operations.dynamics.com/*",
        LAST);

    I also tried your provided functions, but no success.

    I we talk about response the value of state in the response is 476 characters but it is capturing only 127 characters max every time.

    Pls Help.

    Thanks

  • 0   in reply to 

    ,

    Which version of LR are you using?

    Is the limitation only for this request or does it apply for other responses as well?

    How to ask questions

    Reward contributions via likes or 'verified answers'

  • 0   in reply to 

     

    Could you, please, provide a sample response quote, so I will be able to validate the behavior of your web_reg_save_param_ex function locally?

    Best regards,

    Leonid.

    Leonid Pekel
    LoadRunner expert. OpenText.
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button