Tuesday, January 8, 2019



How to handle Load runner Dynamic values print all of them





Action()
{
   
    int i;
int ncount;
char ParamName[1000];


   
    web_reg_save_param("URLList","LB=<a data-container-link href=\"","RB=\" target=\"\">","search=All","ord=all",LAST);
   
   
    web_set_sockets_option("SSL_VERSION""TLS");
   
    web_url("MicroSites",

    "URL=https://HostName/{URL}",

    "TargetFrame=",

    //"TargetBrowser=Mercury Technologies",

    "Resource=0",

    "RecContentType=text/html",

    "Snapshot=t1.inf",

    "Mode=HTML",

    LAST );
   
   
    ncount= atoi(lr_eval_string("{URLList_count}"));

    for (i =1;i <= ncount;i++)
       {
    sprintf(ParamName, "{URLList_%d}", i);

       lr_output_message("Value of %s: %s",ParamName,lr_eval_string(ParamName));
           }
   
    //lr_output_message("Working Microsites are# %s",lr_eval_string("{URLList}"));
   
    return 0;
}

No comments:

Post a Comment