Bug 60819

Summary: Function __fileToString does not honor the documentation contract when file is not found
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 2.8   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Philippe Mouawad 2017-03-04 14:53:25 UTC
When file is not found, documentation says :
If an error occurs opening or reading the file, then the function returns the string "**ERR**"

But if file does not exist, a JMeterStopTestException is thrown instead.
Comment 1 Philippe Mouawad 2017-03-04 15:02:24 UTC
Author: pmouawad
Date: Sat Mar  4 15:01:54 2017
New Revision: 1785497

URL: http://svn.apache.org/viewvc?rev=1785497&view=rev
Log:
Bug 60819 - Function __fileToString does not honor the documentation contract when file is not found
Add JUnit for function
Bugzilla Id: 60819

Added:
    jmeter/trunk/test/src/org/apache/jmeter/functions/TestFileToString.java   (with props)
Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/FileToString.java
    jmeter/trunk/xdocs/changes.xml