Summary: | [Function] FileToString | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Andre Arnold <AndreArnold> |
Component: | Main | Assignee: | 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 |
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 Please also take a look at bug 45174 TCPSampler support for sending files https://issues.apache.org/bugzilla/show_bug.cgi?id=45174 This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2260 |
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