Saving the on screen variable on terminal screen in RTE script.

56 views
Skip to first unread message

Manmohan sharma

unread,
Jan 12, 2012, 10:18:52 AM1/12/12
to LoadRunner
Hi Experts,

I am struggling to use TE_get_text_line function in my RTE script, I
want to get the text from terminal screen and wright the same in a
text file.

Function used for wright operation:
long fp;
fp=fopen("C:\\xyz.txt","a");
fseek(fp,0L,2);

fprintf(fp,"%s\t%sA\t%s\n",lr_eval_string("{CustomerID}"));
fclose(fp);

Emulator type:
3270 Display.

Let me know if further info is required.
Thanks in Advance

Abhishek Banginwar

unread,
Jan 13, 2012, 8:16:51 AM1/13/12
to lr-loa...@googlegroups.com
3 %s and only one variable???


--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en



--
Abhishek

Mark T

unread,
Jan 12, 2012, 11:10:36 PM1/12/12
to LoadRunner
OK<

Why are you using 3 string arguments in your format, and only
supplying 1 value.

Tirumala Reddy K

unread,
Jan 13, 2012, 1:00:05 PM1/13/12
to lr-loa...@googlegroups.com

Hi,
Use below code and try
long f;

f=fopen(c:\filename.txt,"a+");

Then capture the value whch u want find.
fprintf(f,"%s\n",lr_eval_string("{parmname}"));
fclose(f);

Hope this might help u to save the captured text in file.

Manmohan sharma

unread,
Jan 16, 2012, 8:45:02 AM1/16/12
to LoadRunner
sorry for the typo error, The resolution has been done.
It just required a simple handling of data type.

On Jan 13, 6:16 pm, Abhishek Banginwar <abhishek.bangin...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages