Re: Unique file

0 views
Skip to first unread message

Kevyland

unread,
Jan 4, 2013, 9:26:39 AM1/4/13
to LR-Loa...@googlegroups.com
Why not search this forum with topics like save file save pdf, download file.


I can easily understand why James is questioning your basic skill levels when you don't even understand how to research a solution.

What is the performance requirement: 
A) The feature works. You can download a file   NOT PERFORMANCE
B) A file of a particular size downloads in xxx secs on your test environment.   A SUBJECTIVE RELATIVE MEASURE and seems useless.




On Thursday, January 3, 2013 7:23:22 AM UTC-6, manchu kavitha wrote:
How to save downloaded file into Local disk
 
Each user save the downloaded file with unique name
 
if 2 users are executing the script then 2 files should be downloaded with unique names.
 
 
 
Thanks and Regards,
Kavitha
 
 

pradeep cheedalla

unread,
Jan 5, 2013, 5:50:02 AM1/5/13
to LR-Loa...@googlegroups.com
U can use Iteration Number Parameter in nameing converstion,

Or 

U can use Time stamp As file name


example



lr_save_datetime("File %H %M %S", TIME_NOW, "next");

    lr_output_message(lr_eval_string("{next}")); 

fp = fopen(lr_eval_string("D://{next}_{pVuser}_{pItearation}.pdf"),"wb");

Here I use pVuser as VuserID Parameter

pItearation As a Iterartin number Parameter

next is dispaly the time 


output

04_49_24_1_1.pdf


Thanks&Regards
Pradeep.CH






--
 
 

manchu kavitha

unread,
Jan 7, 2013, 6:12:42 AM1/7/13
to LR-Loa...@googlegroups.com, pradeep.c...@gmail.com
 Hi Pradeep,
 
Its working fine,able to create unique file.
 
Thank you,
Kavitha M

--
 
 

James Pulley

unread,
Jan 7, 2013, 9:03:35 AM1/7/13
to LR-Loa...@googlegroups.com
Congrats on turning your local filesystem  and your RAM on your load generators into bottlenecks for your performance test.   What was the benefit that you gained for introducing this painful trade off?

James Pulley

unread,
Jan 21, 2013, 7:28:47 AM1/21/13
to LR-Loa...@googlegroups.com

Just run a couple of GUI virtual users for this.   You are going to turn your load generators into the bottleneck for your entire test.

 

From: LR-Loa...@googlegroups.com [mailto:LR-Loa...@googlegroups.com] On Behalf Of manchu kavitha
Sent: Monday, January 21, 2013 7:13 AM
To: LR-Loa...@googlegroups.com
Subject: Re: Unique file

 

Hi ,

I used Timestamp to capture the downloaded data into file

 

I am getting some binary data along with file content 

 

â x rª»ÌÝ@ÿÿÿÿ ˆâ Ðm… ^… 13584898057832022740969 â ²â x rª»ÌÝ ¶â x rª»ÌÝ

 

Thanks and Regards

Kavitha.M

--
 
 

Reply all
Reply to author
Forward
0 new messages