Bug 47565

Summary: [Function] FileToString
Product: JMeter - Now in Github Reporter: Andre Arnold <AndreArnold>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: soumen.sarkar
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: the function's java file

Description Andre Arnold 2009-07-23 08:45:58 UTC
Created attachment 24029 [details]
the function's java file

I have written a simple function that does us the favor of reading a file at once. (We needed the content of a file in a variable.) It is a simple redesign of the StringFromFile function that reads just one line at a run.

It would be nice to see it the function in the offical version. I'm not sure about all the details of the functions behavior ... maybe one could make it a bit more efficent / safer. (Critics welcome )

regards
Andre
Comment 1 Sebb 2009-08-14 03:06:57 UTC
Thanks for the patch.

I've applied a simplified version in the following SVN update:


URL: http://svn.apache.org/viewvc?rev=804152&view=rev
Log:
Bug 47565 - [Function] FileToString
Comment 2 Soumen Sarkar 2009-11-23 13:47:28 UTC
Please also take a look at bug 45174

TCPSampler support for sending files
https://issues.apache.org/bugzilla/show_bug.cgi?id=45174
Comment 3 The ASF infrastructure team 2022-09-24 20:37:43 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2260