__splitString has a counter intuitive behaviour when separator is "," (default one). Problem 1: Indeed, the String to split would need to be escaped which is in fact rarely the case when you need this function ? Will String really contain: "a\,b\,c" Or : "a,b,c" Problem 2: Also, when you by error input this: ${__split(a\,b\,c,varSplit,)} It doesn't work because function uses empty separator which is wrong, as documentation says this parameter defaults to ",". So function should just ignore this empty . Problem 2 can be fixed. How to fix problem 1 ?
Author: pmouawad Date: Tue Oct 17 19:31:46 2017 New Revision: 1812445 URL: http://svn.apache.org/viewvc?rev=1812445&view=rev Log: Bug 61628 - If split string has empty separator default separator is not used Bugzilla Id: 61628 Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/SplitFunction.java jmeter/trunk/test/src/org/apache/jmeter/functions/SplitFunctionTest.java jmeter/trunk/xdocs/changes.xml
Oups wrong commit
Problem 2 fixed in Bug 61628
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4524