File name is not parameterizing successfully.Pls Help

1 view
Skip to first unread message

Vishal Shah

unread,
Dec 12, 2013, 12:35:23 AM12/12/13
to LR-Loa...@googlegroups.com
Hi,

I want to parameter the file name using below code.

char temp[800];
    
    
char *filename=" "C:\\Users\\vishs\\Desktop\\XML2\\4739-6380-G123456-1386565254128.XML";
    
    lr_save_string(filename,"temp");
        
    lr_output_message("%s",temp);



I have done like below,
char *filename=" "{XMLFILE}";

but while running the script, XMLFILE does not replace with value. and it passes the value.

output:
Action.c(8): Notify: Saving Parameter "temp = {XMLFILE}".


Any help pls..

James Pulley

unread,
Dec 12, 2013, 12:56:25 AM12/12/13
to LR-Loa...@googlegroups.com

 lr_output_message( "%s", lr_eval_string(“{XMLFILE }”) );

--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages