Created attachment 35451 [details] Test plan failing Currently, whenever you store in a variable non string object using vars.putObject("nbLoops", 1) and getting it as ${"nbLoops"} in a LoopController for example will fail due to ClassCastException and a log will appear: > java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String I feel this could be improved by calling toString() on variable value if it's not a String.
Author: pmouawad Date: Tue Oct 24 11:02:25 2017 New Revision: 1813168 URL: http://svn.apache.org/viewvc?rev=1813168&view=rev Log: Bug 61659 - JMeterVariables#get() should apply toString() on non string objects Bugzilla Id: 61659 Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterVariables.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4541