Bug 60819 - Function __fileToString does not honor the documentation contract when file is not found
Summary: Function __fileToString does not honor the documentation contract when file i...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.8
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-04 14:53 UTC by Philippe Mouawad
Modified: 2017-03-04 15:02 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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