LoadRunner web_reg_save_param, ord=all, paramName_count issues

后端 未结 4 1662
旧巷少年郎
旧巷少年郎 2021-01-25 14:39

I am using LoadRunner version 12.02 - Build 2739

Looking at an old, yet correct \'guide\' shows that I have used the statements correctly (3rd Point, around 1/3rd of the

4条回答
  •  臣服心动
    2021-01-25 15:17

    The problem is that you use a soon to be deprecated API web_reg_save_param which does not support the ParamName syntax. In this API the second parameter is always the parameter name and therefore the correct use would be:

    web_reg_save_param(
    "rotaPeople",
    "LB=someText",
    "RB=\")",
    "Ord=ALL",
    LAST);
    

    The proper API to use is web_reg_save_param_ex which does support the syntax you used so the call should look like:

    web_reg_save_param_ex(
    "ParamName=rotaPeople",
    "LB=someText",
    "RB=\")",
    "Ord=ALL",
    LAST);
    

    Then the rest of your code should work properly.

    I am not sure what you are doing but you might want to take a look at the somewhat unknown API lr_paramarr_random which will automatically pull a random value from the parameters array.

提交回复
热议问题