If you introduce by error a space at end of before the switch value, it can be hard to find the problem for the concerned switch. I see no reason why a space would be here. So I suggest we do a trim on field.
I agree, it is much more likely that trailing whitespace is a mistake, so should be the default to trim, as long as it's documented.
Author: pmouawad Date: Sat Jan 6 21:21:42 2018 New Revision: 1820422 URL: http://svn.apache.org/viewvc?rev=1820422&view=rev Log: Bug 61771 - SwitchController : Switch field should be trimmed by safety Bugzilla Id: 61771 Modified: jmeter/trunk/src/components/org/apache/jmeter/control/SwitchController.java jmeter/trunk/xdocs/changes.xml Author: pmouawad Date: Sat Jan 6 21:22:05 2018 New Revision: 1820423 URL: http://svn.apache.org/viewvc?rev=1820423&view=rev Log: Bug 61771 - SwitchController : Switch field should be trimmed by safety Add tests Bugzilla Id: 61771 Modified: jmeter/trunk/test/src/org/apache/jmeter/control/TestSwitchController.java
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4594